MeshWeaver.Reflection
3.0.0-rc3
This is a prerelease version of MeshWeaver.Reflection.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package MeshWeaver.Reflection --version 3.0.0-rc3
NuGet\Install-Package MeshWeaver.Reflection -Version 3.0.0-rc3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MeshWeaver.Reflection" Version="3.0.0-rc3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.Reflection" Version="3.0.0-rc3" />
<PackageReference Include="MeshWeaver.Reflection" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MeshWeaver.Reflection --version 3.0.0-rc3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MeshWeaver.Reflection, 3.0.0-rc3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MeshWeaver.Reflection@3.0.0-rc3
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MeshWeaver.Reflection&version=3.0.0-rc3&prerelease
#tool nuget:?package=MeshWeaver.Reflection&version=3.0.0-rc3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MeshWeaver.Reflection
Overview
MeshWeaver.Reflection provides a collection of extension methods and utilities to simplify common reflection tasks in C#. This library extends the standard reflection capabilities with convenient helper methods and performance optimizations.
Features
Type Extensions
- Anonymous type detection
- Nullable type handling
- Type inheritance and interface inspection
- Attribute handling
- Property and method reflection helpers
Member Info Extensions
- Attribute inspection and caching
- Property override detection
- Virtual property analysis
- Interface declaration inspection
Reflection Helpers
- Property accessor detection
- Constant value extraction
- Generic type constraint validation
- Type signature analysis
Performance Optimizations
- Cached attribute lookups
- Optimized type comparisons
- Efficient member access
Usage Examples
// Check if type is anonymous
bool isAnonymous = type.IsAnonymous();
// Get all string constants from a type
var constants = type.GetStringConstants();
// Check if property overrides base class
bool isOverride = propertyInfo.IsOverride();
// Get custom attributes with inheritance
var attributes = memberInfo.GetCustomAttributesInherited<T>();
Integration
The library is used throughout the MeshWeaver ecosystem to provide efficient reflection capabilities where needed.
See Also
Refer to the main MeshWeaver documentation for more information about the overall project architecture.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- MeshWeaver.Utils (>= 3.0.0-rc3)
- System.Interactive (>= 7.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|
Loading failed