-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Reflection_ReflectionExtensions
Andrew Koryavchenko edited this page Jun 17, 2018
·
13 revisions
Reflection extension methods.
Reflection extension methods.
System.Object
CodeJam.Reflection.ReflectionExtensions
Namespace: CodeJam.Reflection
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static class ReflectionExtensions
VB
<ExtensionAttribute>
Public NotInheritable Class ReflectionExtensions
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type ReflectionExtensions = class end
The ReflectionExtensions type exposes the following members.
Name | Description | |
---|---|---|
CreateInstance | Creates instance of type with specified parameters. | |
GetDefaultConstructor | Returns default constructor. | |
GetDelegateParams | Returns delegate parameter infos. | |
GetItemType | Gets a value indicating whether the current Type encompasses or refers to another type; that is, whether the provided Type is an array, a pointer, or is passed by reference. | |
GetMemberType | Gets the type of this member. | |
GetMetadataAttributes(TAttribute)(ICustomAttributeProvider) | Performs search for metadata attributes. The search is performed in the following order: * member attributes, base implementation attributes (if the attributeProvider is member of the type) * type attributes, base type attributes (if the attributeProvider is type or member of the type) * container type attributes (if the type is nested type) * assembly attributes. | |
GetMetadataAttributes(TAttribute)(ICustomAttributeProvider, Boolean) |
Performs search for metadata attributes. If the thisLevelOnly is true , the search is performed in the following order: * member attributes, base implementation attributes (if the attributeProvider is member of the type) * type attributes, base type attributes (if the attributeProvider is type or member of the type) * container type attributes (if the type is nested type) * assembly attributes. |
|
GetModulePath | Returns path to the module file. | |
GetShortAssemblyQualifiedName | Gets the short form of assembly qualified type name (without assembly version or assembly key). | |
IsAnonymous | Checks if type is an anonymous type. | |
IsInstantiable | Gets a value indicating whether the type can be instantiated. | |
IsInteger | Checks if type is integer type. | |
IsNullable | Gets a value indicating whether the type is Nullable<> type. | |
IsNullableEnum | Checks if type is nullable enum type. | |
IsNullableInteger | Checks if type is nullable integer type. | |
IsNullableNumeric | Checks if type is nullable numeric type. | |
IsNumeric | Checks if type is numeric type. | |
IsStatic | Gets a value indicating whether the type is declared static. | |
IsSubClass | Determines whether the type derives from the specified check. | |
ToEnumUnderlying | Returns the underlying type argument of the specified enum type. | |
ToNullableUnderlying | Returns the underlying type argument of the specified nullable type. | |
ToUnderlying | Returns the underlying type argument of the specified type. | |
TryGetMetadataAttribute(TAttribute)(ICustomAttributeProvider) | Performs search for metadata attribute. The search is performed in the following order * member attributes, base implementation attributes (if the attributeProvider is member of the type) * type attributes, base type attributes (if the attributeProvider is type or member of the type) * container type attributes (if the type is nested type) * assembly attributes. | |
TryGetMetadataAttribute(TAttribute)(ICustomAttributeProvider, Boolean) |
Performs search for metadata attribute. If the thisLevelOnly is true , the search is performed in the following order: * member attributes, base implementation attributes (if the attributeProvider is member of the type) * type attributes, base type attributes (if the attributeProvider is type or member of the type) * container type attributes (if the type is nested type) * assembly attributes. |