ToolBX.Reflection4Humans.Extensions
1.0.0
See the version list below for details.
dotnet add package ToolBX.Reflection4Humans.Extensions --version 1.0.0
NuGet\Install-Package ToolBX.Reflection4Humans.Extensions -Version 1.0.0
<PackageReference Include="ToolBX.Reflection4Humans.Extensions" Version="1.0.0" />
<PackageVersion Include="ToolBX.Reflection4Humans.Extensions" Version="1.0.0" />
<PackageReference Include="ToolBX.Reflection4Humans.Extensions" />
paket add ToolBX.Reflection4Humans.Extensions --version 1.0.0
#r "nuget: ToolBX.Reflection4Humans.Extensions, 1.0.0"
#:package ToolBX.Reflection4Humans.Extensions@1.0.0
#addin nuget:?package=ToolBX.Reflection4Humans.Extensions&version=1.0.0
#tool nuget:?package=ToolBX.Reflection4Humans.Extensions&version=1.0.0
Reflection4Humans
Reflection extension methods meant to be used by humans.
Type extensions
Type.GetHumanReadableName
Have you ever wanted to output a type name in an exception message before only for it to read like this?
"Reflection4Humans.Extensions.Tests.Dummy`1[System.String] did something weird!"
Wouldn't it have been easier on the eyes if it had said this instead?
"Dummy<String> did something weird!"
This is what this method helps you achieve.
//Instead of this
typeof(Dummy<string>).Name
//Use this
typeof(Dummy<string>).GetHumanReadableName();
Type.IsAttribute
//Isn't it weird that you have the following in C#
var isInterface = type.IsInterface;
var isAbstract = type.IsAbstract;
var isClass = type.IsClass;
var isGenericType = type.IsGenericType;
//But not this?
var isAttribute = type.IsAttribute();
Well now you have it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- No dependencies.
NuGet packages (10)
Showing the top 5 NuGet packages that depend on ToolBX.Reflection4Humans.Extensions:
| Package | Downloads |
|---|---|
|
ToolBX.Reflection4Humans.TypeFetcher
Provides a more straightforward way for a human being to get types from all loaded assemblies using the TypeFetcher class. |
|
|
ToolBX.Reflection4Humans.ValueEquality
Adds extensions to automatically compare objects by value. |
|
|
ToolBX.EasyTypeParsing
Extension methods to make it easier to parse strings into other types. |
|
|
ToolBX.Collections.ReadOnly
Actual read-only collections with helper extension methods to make them less painful to use. |
|
|
ToolBX.Collections.ObservableList
A modern re-implementation of a dynamic one-dimensional array. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 8,542 | 9/26/2024 |
| 3.0.0-beta5 | 685 | 9/22/2024 |
| 3.0.0-beta4 | 482 | 9/22/2024 |
| 3.0.0-beta3 | 189 | 9/22/2024 |
| 3.0.0-beta2 | 287 | 9/7/2024 |
| 3.0.0-beta1 | 344 | 5/31/2024 |
| 2.2.0 | 11,651 | 1/11/2024 |
| 2.2.0-beta9 | 1,162 | 1/7/2024 |
| 2.2.0-beta8 | 411 | 12/29/2023 |
| 2.2.0-beta7 | 485 | 12/14/2023 |
| 2.2.0-beta6 | 445 | 12/14/2023 |
| 2.2.0-beta4 | 663 | 11/16/2023 |
| 2.2.0-beta3 | 177 | 11/15/2023 |
| 2.2.0-beta2 | 229 | 8/16/2023 |
| 2.2.0-beta1 | 632 | 7/24/2023 |
| 2.1.0-beta1 | 220 | 6/28/2023 |
| 2.0.3 | 13,753 | 6/19/2023 |
| 2.0.2 | 2,829 | 4/23/2023 |
| 2.0.1 | 326 | 2/17/2023 |
| 2.0.1-beta2 | 224 | 2/16/2023 |
| 2.0.1-beta1 | 240 | 2/14/2023 |
| 2.0.0 | 1,872 | 11/9/2022 |
| 2.0.0-beta1 | 754 | 9/20/2022 |
| 1.0.0 | 13,324 | 12/24/2021 |