Skip to content

Methods_T_CodeJam_Reflection_ReflectionExtensions

andrewvk edited this page Mar 30, 2016 · 11 revisions

ReflectionExtensions Methods

[This is preliminary documentation and is subject to change.]

The ReflectionExtensions type exposes the following members.

Methods

 

Name Description
Public methodStatic member GetCustomAttribute(T) Returns custom attribute defined on this member, identified by type T, or null if there are no custom attribute of that type.
Public methodStatic member GetCustomAttributes(T) Returns an array of custom attributes defined on this member, identified by type T, or empty array if there are no custom attribute of that type.
Public methodStatic member HasCustomAttribute(ICustomAttributeProvider, Type, Boolean) Returns true if at least one attribute of type attrType specified in member exists.
Public methodStatic member HasCustomAttribute(ICustomAttributeProvider, Type, Func(Attribute, Boolean), Boolean) Returns true if at least one attribute of type attrType specified in member corresponds to predicate.
Public methodStatic member HasCustomAttribute(T)(ICustomAttributeProvider, Boolean) Returns true if at least one attribute of type T specified in member exists.
Public methodStatic member HasCustomAttribute(T)(ICustomAttributeProvider, Func(T, Boolean), Boolean) Returns true if at least one attribute of type T specified in member corresponds to predicate.
Public methodStatic member IsInstantiable Gets a value indicating whether the type can be instantiated.
Public methodStatic member IsNullable Gets a value indicating whether the type is Nullable<> 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.
  Back to Top

See Also

Reference

ReflectionExtensions Class
CodeJam.Reflection Namespace

Clone this wiki locally