Skip to content

Methods_T_CodeJam_Reflection_ReflectionExtensions

Andrew Koryavchenko edited this page Jul 4, 2017 · 11 revisions

ReflectionExtensions Methods

The ReflectionExtensions type exposes the following members.

Methods

 

Name Description
Public methodStatic member CreateInstance Creates instance of type with specified parameters.
Public methodStatic member GetDefaultConstructor Returns default constructor.
Public methodStatic member GetDelegateParams Returns delegate parameter infos.
Public methodStatic member 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.
Public methodStatic member GetMemberType Gets the type of this member.
Public methodStatic 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.
Public methodStatic member 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.
Public methodStatic member GetModulePath Returns path to the module file.
Public methodStatic memberCode example GetShortAssemblyQualifiedName Gets the short form of assembly qualified type name (without assembly version or assembly key).
Public methodStatic member IsAnonymous Checks if type is an anonymous type.
Public methodStatic member IsInstantiable Gets a value indicating whether the type can be instantiated.
Public methodStatic member IsInteger Checks if type is integer type.
Public methodStatic member IsNullable Gets a value indicating whether the type is Nullable<> type.
Public methodStatic member IsNullableEnum Checks if type is nullable enum type.
Public methodStatic member IsNullableInteger Checks if type is nullable integer type.
Public methodStatic member IsNullableNumeric Checks if type is nullable numeric type.
Public methodStatic member IsNumeric Checks if type is numeric type.
Public methodStatic member IsStatic Gets a value indicating whether the type is declared static.
Public methodStatic member IsSubClass Determines whether the type derives from the specified check.
Public methodStatic member ToEnumUnderlying Returns the underlying type argument of the specified enum type.
Public methodStatic member ToNullableUnderlying Returns the underlying type argument of the specified nullable type.
Public methodStatic member ToUnderlying Returns the underlying type argument of the specified type.
Public methodStatic member 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.
Public methodStatic member 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.
  Back to Top

See Also

Reference

ReflectionExtensions Class
CodeJam.Reflection Namespace

Clone this wiki locally