Namespace Cuemon.Reflection
Retrieve assembly metadata, inspect members and parameters, resolve versioning schemes (traditional and semantic), and map assemblies to target framework monikers without verbose reflection boilerplate. The Cuemon.Reflection namespace extends Assembly, MemberInfo, and MethodInfo through IDecorator<T> extension methods for attribute inspection, type discovery, and version resolution, and it includes TargetFrameworkMoniker for resolving short TFMs such as net10.0 or netstandard2.0. Use these APIs when you need to check assembly build type, detect custom attributes, inspect member metadata, or determine which target framework an assembly was built for. Start with HasAttribute<T> on IDecorator<MemberInfo> for attribute detection, GetTypes on IDecorator<Assembly> for type discovery, or TargetFrameworkMoniker.ResolveCurrent for current-process TFM resolution.
Availability: .NET 10, .NET 9 and .NET Standard 2.0
Complements: System.Reflection namespace 🔗
Extension Members
| Type | Ext | Methods |
|---|---|---|
| IDecorator |
⬇️ | GetTypes, IsDebugBuild, GetAssemblyVersion, GetFileVersion, GetProductVersion, GetManifestResources |
| IDecorator |
⬇️ | HasAttribute<T>, HasAttribute |
| IDecorator |
⬇️ | IsOverridden |
| IDecorator |
⬇️ | IsOverridden, IsAutoProperty |
| IDecorator<Stack<IList |
⬇️ | CreateException |
Classes
ActivatorFactory
Provides access to factory methods for creating instances of the specified generic type parameter.
ActivatorOptions
Configuration options for ActivatorFactory.
AssemblyContext
Provides a set of static methods and properties to manage and filter assemblies in the current application domain.
AssemblyContextOptions
Provides configuration options for the AssemblyContext class.
AssemblyDecoratorExtensions
Extension methods for the Assembly class hidden behind the IDecorator<T> interface.
MemberArgument
Represent the argument given to a member in the context of reflection.
MemberArgumentDecoratorExtensions
Extension methods for the MemberArgument class hidden behind the IDecorator<T> interface.
MemberInfoDecoratorExtensions
Extension methods for the MemberInfo class hidden behind the IDecorator<T> interface.
MemberParser
Provides a generic way to rehydrate serialized objects.
MemberReflection
Provides a robust way specifying binding constraints for reflection based member searching.
MemberReflectionOptions
Configuration options for MemberReflection.
MethodBaseOptions
Configuration options for MethodBase.
MethodDescriptor
Provides information about a method, such as its name, parameters and whether its a property or method.
MethodInfoDecoratorExtensions
Extension methods for the MethodInfo class hidden behind the IDecorator<T> interface.
MethodSignature
Represent the signature of a method in a lightweight format.
ParameterSignature
Represent the signature of a parameter to a method, property or similar.
PropertyInfoDecoratorExtensions
Extension methods for the PropertyInfo class hidden behind the IDecorator<T> interface.
TargetFrameworkMoniker
Provides a set of static methods for resolving target framework monikers from assemblies and the current application context.
TypeNameOptions
Configuration options for ToFriendlyName(IDecorator<Type>, Action<TypeNameOptions>).
VersionResult
Represents different representations of a version scheme in a consistent way.
Enums
ManifestResourceMatch
Specifies the way of finding and returning an embedded resource.