Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Type
Assembly: System.Runtime
Inheritance: object → MemberInfo → Type
Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.
Fields and Constants
public static readonly
char
Delimiter
Separates names in the namespace of the <see cref="T:System.Type" /> . This field is read-only.
public static readonly
Type[]
EmptyTypes
Represents an empty array of type <see cref="T:System.Type" /> . This field is read-only.
public static readonly
MemberFilter
FilterAttribute
Represents the member filter used on attributes. This field is read-only.
public static readonly
MemberFilter
FilterName
Represents the case-sensitive member filter used on names. This field is read-only.
public static readonly
MemberFilter
FilterNameIgnoreCase
Represents the case-insensitive member filter used on names. This field is read-only.
public static readonly
object
Missing
Represents a missing value in the <see cref="T:System.Type" /> information. This field is read-only.
Properties
public
Assembly
Assembly
Gets the <see cref="T:System.Reflection.Assembly" /> in which the type is declared. For generic types, gets the <see cref="T:System.Reflection.Assembly" /> in which the generic type is defined.
public
string
AssemblyQualifiedName
Gets the assembly-qualified name of the type, which includes the name of the assembly from which this <see cref="T:System.Type" /> object was loaded.
public
TypeAttributes
Attributes
Gets the attributes associated with the <see cref="T:System.Type" /> .
public
Type
BaseType
Gets the type from which the current <see cref="T:System.Type" /> directly inherits.
public
bool
ContainsGenericParameters
Gets a value indicating whether the current <see cref="T:System.Type" /> object has type parameters that have not been replaced by specific types.
public
MethodBase
DeclaringMethod
Gets a <see cref="T:System.Reflection.MethodBase" /> that represents the declaring method, if the current <see cref="T:System.Type" /> represents a type parameter of a generic method.
public
Type
DeclaringType
Gets the type that declares the current nested type or generic type parameter.
public
string
FullName
Gets the fully qualified name of the type, including its namespace but not its assembly.
public
GenericParameterAttributes
GenericParameterAttributes
Gets a combination of <see cref="T:System.Reflection.GenericParameterAttributes" /> flags that describe the covariance and special constraints of the current generic type parameter.
public
int
GenericParameterPosition
Gets the position of the type parameter in the type parameter list of the generic type or method that declared the parameter, when the <see cref="T:System.Type" /> object represents a type parameter of a generic type or a generic method.
public
Type[]
GenericTypeArguments
Gets an array of the generic type arguments for this type.
public
Guid
GUID
Gets the GUID associated with the <see cref="T:System.Type" /> .
public
bool
HasElementType
Gets a value indicating whether the current <see cref="T:System.Type" /> encompasses or refers to another type; that is, whether the current <see cref="T:System.Type" /> is an array, a pointer, or is passed by reference.
public
bool
IsAbstract
Gets a value indicating whether the <see cref="T:System.Type" /> is abstract and must be overridden.
public
bool
IsAnsiClass
Gets a value indicating whether the string format attribute <see langword="AnsiClass" /> is selected for the <see cref="T:System.Type" /> .
public
bool
IsArray
Gets a value that indicates whether the type is an array.
public
bool
IsAutoClass
Gets a value indicating whether the string format attribute <see langword="AutoClass" /> is selected for the <see cref="T:System.Type" /> .
public
bool
IsAutoLayout
Gets a value indicating whether the fields of the current type are laid out automatically by the common language runtime.
public
bool
IsByRef
Gets a value indicating whether the <see cref="T:System.Type" /> is passed by reference.
public
bool
IsByRefLike
Gets a value that indicates whether the type is a byref-like structure.
public
bool
IsClass
Gets a value indicating whether the <see cref="T:System.Type" /> is a class or a delegate; that is, not a value type or interface.
public
bool
IsCOMObject
Gets a value indicating whether the <see cref="T:System.Type" /> is a COM object.
public
bool
IsConstructedGenericType
Gets a value that indicates whether this object represents a constructed generic type. You can create instances of a constructed generic type.
public
bool
IsContextful
Gets a value indicating whether the <see cref="T:System.Type" /> can be hosted in a context.
public
bool
IsEnum
Gets a value indicating whether the current <see cref="T:System.Type" /> represents an enumeration.
public
bool
IsExplicitLayout
Gets a value indicating whether the fields of the current type are laid out at explicitly specified offsets.
public
bool
IsFunctionPointer
Gets a value that indicates whether the current <see cref="T:System.Type" /> is a function pointer.
public
bool
IsGenericMethodParameter
Gets a value that indicates whether the current <see cref="T:System.Type" /> represents a type parameter in the definition of a generic method.
public
bool
IsGenericParameter
Gets a value indicating whether the current <see cref="T:System.Type" /> represents a type parameter in the definition of a generic type or method.
public
bool
IsGenericType
Gets a value indicating whether the current type is a generic type.
public
bool
IsGenericTypeDefinition
Gets a value indicating whether the current <see cref="T:System.Type" /> represents a generic type definition, from which other generic types can be constructed.
public
bool
IsGenericTypeParameter
Gets a value that indicates whether the current <see cref="T:System.Type" /> represents a type parameter in the definition of a generic type.
public
bool
IsImport
Gets a value indicating whether the <see cref="T:System.Type" /> has a <see cref="T:System.Runtime.InteropServices.ComImportAttribute" /> attribute applied, indicating that it was imported from a COM type library.
public
bool
IsInterface
Gets a value indicating whether the <see cref="T:System.Type" /> is an interface; that is, not a class or a value type.
public
bool
IsLayoutSequential
Gets a value indicating whether the fields of the current type are laid out sequentially, in the order that they were defined or emitted to the metadata.
public
bool
IsMarshalByRef
Gets a value indicating whether the <see cref="T:System.Type" /> is marshaled by reference.
public
bool
IsNested
Gets a value indicating whether the current <see cref="T:System.Type" /> object represents a type whose definition is nested inside the definition of another type.
public
bool
IsNestedAssembly
Gets a value indicating whether the <see cref="T:System.Type" /> is nested and visible only within its own assembly.
public
bool
IsNestedFamANDAssem
Gets a value indicating whether the <see cref="T:System.Type" /> is nested and visible only to classes that belong to both its own family and its own assembly.
public
bool
IsNestedFamily
Gets a value indicating whether the <see cref="T:System.Type" /> is nested and visible only within its own family.
public
bool
IsNestedFamORAssem
Gets a value indicating whether the <see cref="T:System.Type" /> is nested and visible only to classes that belong to either its own family or to its own assembly.
public
bool
IsNestedPrivate
Gets a value indicating whether the <see cref="T:System.Type" /> is nested and declared private.
public
bool
IsNestedPublic
Gets a value indicating whether a class is nested and declared public.
public
bool
IsNotPublic
Gets a value indicating whether the <see cref="T:System.Type" /> is not declared public.
public
bool
IsPointer
Gets a value indicating whether the <see cref="T:System.Type" /> is a pointer.
public
bool
IsPrimitive
Gets a value indicating whether the <see cref="T:System.Type" /> is one of the primitive types.
public
bool
IsPublic
Gets a value indicating whether the <see cref="T:System.Type" /> is declared public.
public
bool
IsSealed
Gets a value indicating whether the <see cref="T:System.Type" /> is declared sealed.
public
bool
IsSecurityCritical
Gets a value that indicates whether the current type is security-critical or security-safe-critical at the current trust level, and therefore can perform critical operations.
public
bool
IsSecuritySafeCritical
Gets a value that indicates whether the current type is security-safe-critical at the current trust level; that is, whether it can perform critical operations and can be accessed by transparent code.
public
bool
IsSecurityTransparent
Gets a value that indicates whether the current type is transparent at the current trust level, and therefore cannot perform critical operations.
public
bool
IsSerializable
Gets a value indicating whether the <see cref="T:System.Type" /> is binary serializable.
public
bool
IsSignatureType
Gets a value that indicates whether the type is a signature type.
public
bool
IsSpecialName
Gets a value indicating whether the type has a name that requires special handling.
public
bool
IsSZArray
Gets a value that indicates whether the type is an array type that can represent only a single-dimensional array with a zero lower bound.
public
bool
IsTypeDefinition
Gets a value that indicates whether the type is a type definition.
public
bool
IsUnicodeClass
Gets a value indicating whether the string format attribute <see langword="UnicodeClass" /> is selected for the <see cref="T:System.Type" /> .
public
bool
IsUnmanagedFunctionPointer
Gets a value that indicates whether the current <see cref="T:System.Type" /> is an unmanaged function pointer.
public
bool
IsValueType
Gets a value indicating whether the <see cref="T:System.Type" /> is a value type.
public
bool
IsVariableBoundArray
Gets a value that indicates whether the type is an array type that can represent a multi-dimensional array or an array with an arbitrary lower bound.
public
bool
IsVisible
Gets a value indicating whether the <see cref="T:System.Type" /> can be accessed by code outside the assembly.
public
MemberTypes
MemberType
Gets a <see cref="T:System.Reflection.MemberTypes" /> value indicating that this member is a type or a nested type.
public
Module
Module
Gets the module (the DLL) in which the current <see cref="T:System.Type" /> is defined.
public
string
Namespace
Gets the namespace of the <see cref="T:System.Type" /> .
public
Type
ReflectedType
Gets the class object that was used to obtain this member.
public
StructLayoutAttribute
StructLayoutAttribute
Gets a <see cref="T:System.Runtime.InteropServices.StructLayoutAttribute" /> that describes the layout of the current type.
public
RuntimeTypeHandle
TypeHandle
Gets the handle for the current <see cref="T:System.Type" /> .
public
ConstructorInfo
TypeInitializer
Gets the initializer for the type.
public
Type
UnderlyingSystemType
Indicates the type provided by the common language runtime that represents this type.
public
IEnumerable`1
CustomAttributes
Gets a collection that contains this member's custom attributes.
public
bool
IsCollectible
Gets a value that indicates whether this <see cref="T:System.Reflection.MemberInfo" /> object references one or more assemblies held in a collectible <see cref="T:System.Runtime.Loader.AssemblyLoadContext" /> .
public
int
MetadataToken
Gets a value that identifies a metadata element.
public
string
Name
Gets the name of the current member.
Methods
public
bool
Equals​(object o)
o
The object whose underlying system type is to be compared with the underlying system type of the current <see cref="T:System.Type" /> . For the comparison to succeed, <paramref name="o" /> must be able to be cast or converted to an object of type <see cref="T:System.Type" /> .
Returns <see langword="true" /> if the underlying system type of <paramref name="o" /> is the same as the underlying system type of the current <see cref="T:System.Type" /> ; otherwise, <see langword="false" /> . This method also returns <see langword="false" /> if:
- <paramref name="o" /> is <see langword="null" /> .
- <paramref name="o" /> cannot be cast or converted to a <see cref="T:System.Type" /> object.
Determines if the underlying system type of the current <see cref="T:System.Type" /> object is the same as the underlying system type of the specified <see cref="T:System.Object" /> .
public
bool
Equals​(Type o)
o
The object whose underlying system type is to be compared with the underlying system type of the current <see cref="T:System.Type" /> .
Returns <see langword="true" /> if the underlying system type of <paramref name="o" /> is the same as the underlying system type of the current <see cref="T:System.Type" /> ; otherwise, <see langword="false" /> .
Determines if the underlying system type of the current <see cref="T:System.Type" /> is the same as the underlying system type of the specified <see cref="T:System.Type" /> .
public
Type[]
FindInterfaces​(TypeFilter filter,
object filterCriteria)
filter
The delegate that compares the interfaces against <paramref name="filterCriteria" /> .
filterCriteria
The search criteria that determines whether an interface should be included in the returned array.
Returns An array of <see cref="T:System.Type" /> objects representing a filtered list of the interfaces implemented or inherited by the current <see cref="T:System.Type" /> , or an empty array if no interfaces matching the filter are implemented or inherited by the current <see cref="T:System.Type" /> .
Returns an array of <see cref="T:System.Type" /> objects representing a filtered list of interfaces implemented or inherited by the current <see cref="T:System.Type" /> .
public
MemberInfo[]
FindMembers​(MemberTypes memberType,
BindingFlags bindingAttr,
MemberFilter filter,
object filterCriteria)
memberType
A bitwise combination of the enumeration values that indicates the type of member to search for.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
filter
The delegate that does the comparisons, returning <see langword="true" /> if the member currently being inspected matches the <paramref name="filterCriteria" /> and <see langword="false" /> otherwise.
filterCriteria
The search criteria that determines whether a member is returned in the array of <see langword="MemberInfo" /> objects.
The fields of <see langword="FieldAttributes" /> , <see langword="MethodAttributes" /> , and <see langword="MethodImplAttributes" /> can be used in conjunction with the <see langword="FilterAttribute" /> delegate supplied by this class.
Returns A filtered array of <see cref="T:System.Reflection.MemberInfo" /> objects of the specified member type.
-or-
An empty array if the current <see cref="T:System.Type" /> does not have members of type <paramref name="memberType" /> that match the filter criteria.
Returns a filtered array of <see cref="T:System.Reflection.MemberInfo" /> objects of the specified member type.
public
int
GetArrayRank​() Returns An integer that contains the number of dimensions in the current type.
Gets the number of dimensions in an array.
protected
TypeAttributes
GetAttributeFlagsImpl​() Returns A <see cref="T:System.Reflection.TypeAttributes" /> object representing the attribute set of the <see cref="T:System.Type" /> .
When overridden in a derived class, implements the <see cref="P:System.Type.Attributes" /> property and gets a bitwise combination of enumeration values that indicate the attributes associated with the <see cref="T:System.Type" /> .
public
ConstructorInfo
GetConstructor​(BindingFlags bindingAttr,
Binder binder,
CallingConventions callConvention,
Type[] types,
ParameterModifier[] modifiers)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
callConvention
The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and the stack is cleaned up.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the constructor to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a constructor that takes no parameters.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.
Returns An object representing the constructor that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.
public
ConstructorInfo
GetConstructor​(BindingFlags bindingAttr,
Binder binder,
Type[] types,
ParameterModifier[] modifiers)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the constructor to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a constructor that takes no parameters.
-or-
<see cref="F:System.Type.EmptyTypes" /> .
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the parameter type array. The default binder does not process this parameter.
Returns A <see cref="T:System.Reflection.ConstructorInfo" /> object representing the constructor that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints.
public
ConstructorInfo
GetConstructor​(BindingFlags bindingAttr,
Type[] types)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or- Default to return <see langword="null" /> .
types
An array of Type objects representing the number, order, and type of the parameters for the constructor to get.
-or- An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = Array.Empty{Type}()) to get a constructor that takes no parameters.
-or- <see cref="F:System.Type.EmptyTypes" /> .
Returns A <see cref="T:System.Reflection.ConstructorInfo" /> object representing the constructor that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for a constructor whose parameters match the specified argument types, using the specified binding constraints.
public
ConstructorInfo
GetConstructor​(Type[] types)
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the desired constructor.
-or-
An empty array of <see cref="T:System.Type" /> objects, to get a constructor that takes no parameters. Such an empty array is provided by the <see langword="static" /> field <see cref="F:System.Type.EmptyTypes" /> .
Returns An object representing the public instance constructor whose parameters match the types in the parameter type array, if found; otherwise, <see langword="null" /> .
Searches for a public instance constructor whose parameters match the types in the specified array.
protected
ConstructorInfo
GetConstructorImpl​(BindingFlags bindingAttr,
Binder binder,
CallingConventions callConvention,
Type[] types,
ParameterModifier[] modifiers)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
callConvention
The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and the stack is cleaned up.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the constructor to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a constructor that takes no parameters.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.
Returns A <see cref="T:System.Reflection.ConstructorInfo" /> object representing the constructor that matches the specified requirements, if found; otherwise, <see langword="null" /> .
When overridden in a derived class, searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.
public
ConstructorInfo[]
GetConstructors​() Returns An array of <see cref="T:System.Reflection.ConstructorInfo" /> objects representing all the public instance constructors defined for the current <see cref="T:System.Type" /> , but not including the type initializer (static constructor). If no public instance constructors are defined for the current <see cref="T:System.Type" /> , or if the current <see cref="T:System.Type" /> represents a type parameter in the definition of a generic type or generic method, an empty array of type <see cref="T:System.Reflection.ConstructorInfo" /> is returned.
Returns all the public constructors defined for the current <see cref="T:System.Type" /> .
public
ConstructorInfo[]
GetConstructors​(BindingFlags bindingAttr)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return an empty array.
Returns An array of <see cref="T:System.Reflection.ConstructorInfo" /> objects representing all constructors defined for the current <see cref="T:System.Type" /> that match the specified binding constraints, including the type initializer if it's defined. Returns an empty array of type <see cref="T:System.Reflection.ConstructorInfo" /> if no constructors are defined for the current <see cref="T:System.Type" /> , if none of the defined constructors match the binding constraints, or if the current <see cref="T:System.Type" /> represents a type parameter in the definition of a generic type or generic method.
When overridden in a derived class, searches for the constructors defined for the current <see cref="T:System.Type" /> , using the specified <see langword="BindingFlags" /> .
public
MemberInfo[]
GetDefaultMembers​() Returns An array of <see cref="T:System.Reflection.MemberInfo" /> objects representing all default members of the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Reflection.MemberInfo" /> , if the current <see cref="T:System.Type" /> does not have default members.
Searches for the members defined for the current <see cref="T:System.Type" /> whose <see cref="T:System.Reflection.DefaultMemberAttribute" /> is set.
public
Type
GetElementType​() Returns The <see cref="T:System.Type" /> of the object encompassed or referred to by the current array, pointer, or reference type, or <see langword="null" /> if the current <see cref="T:System.Type" /> is not an array or a pointer, or is not passed by reference, or represents a generic type or a type parameter in the definition of a generic type or generic method.
When overridden in a derived class, returns the <see cref="T:System.Type" /> of the object encompassed or referred to by the current array, pointer or reference type.
public
string
GetEnumName​(object value)
value
The value whose name is to be retrieved.
Returns The name of the member of the current enumeration type that has the specified value, or <see langword="null" /> if no such constant is found.
Returns the name of the constant that has the specified value, for the current enumeration type.
public
string[]
GetEnumNames​() Returns An array that contains the names of the members of the enumeration.
Returns the names of the members of the current enumeration type.
public
Type
GetEnumUnderlyingType​() Returns The underlying type of the current enumeration.
Returns the underlying type of the current enumeration type.
public
Array
GetEnumValues​() Returns An array that contains the values. The elements of the array are sorted by the binary values (that is, the unsigned values) of the enumeration constants.
Returns an array of the values of the constants in the current enumeration type.
public
Array
GetEnumValuesAsUnderlyingType​() Returns An array that contains the values of the underlying type constants in this enumeration type.
Retrieves an array of the values of the underlying type constants of this enumeration type.
public
EventInfo
GetEvent​(string name)
name
The string containing the name of an event that is declared or inherited by the current <see cref="T:System.Type" /> .
Returns The object representing the specified public event that is declared or inherited by the current <see cref="T:System.Type" /> , if found; otherwise, <see langword="null" /> .
Returns the <see cref="T:System.Reflection.EventInfo" /> object representing the specified public event.
public
EventInfo
GetEvent​(string name,
BindingFlags bindingAttr)
name
The name of an event that is declared or inherited by the current <see cref="T:System.Type" /> .
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
Returns The object representing the specified event that is declared or inherited by the current <see cref="T:System.Type" /> , if found; otherwise, <see langword="null" /> .
When overridden in a derived class, returns the <see cref="T:System.Reflection.EventInfo" /> object representing the specified event, using the specified binding constraints.
public
EventInfo[]
GetEvents​() Returns An array of <see cref="T:System.Reflection.EventInfo" /> objects representing all the public events which are declared or inherited by the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Reflection.EventInfo" /> , if the current <see cref="T:System.Type" /> does not have public events.
Returns all the public events that are declared or inherited by the current <see cref="T:System.Type" /> .
public
EventInfo[]
GetEvents​(BindingFlags bindingAttr)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return an empty array.
Returns An array of <see cref="T:System.Reflection.EventInfo" /> objects representing all events that are declared or inherited by the current <see cref="T:System.Type" /> that match the specified binding constraints.
-or-
An empty array of type <see cref="T:System.Reflection.EventInfo" /> , if the current <see cref="T:System.Type" /> does not have events, or if none of the events match the binding constraints.
When overridden in a derived class, searches for events that are declared or inherited by the current <see cref="T:System.Type" /> , using the specified binding constraints.
public
FieldInfo
GetField​(string name)
name
The string containing the name of the data field to get.
Returns An object representing the public field with the specified name, if found; otherwise, <see langword="null" /> .
Searches for the public field with the specified name.
public
FieldInfo
GetField​(string name,
BindingFlags bindingAttr)
name
The string containing the name of the data field to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
Returns An object representing the field that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified field, using the specified binding constraints.
public
FieldInfo[]
GetFields​() Returns An array of <see cref="T:System.Reflection.FieldInfo" /> objects representing all the public fields defined for the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Reflection.FieldInfo" /> , if no public fields are defined for the current <see cref="T:System.Type" /> .
Returns all the public fields of the current <see cref="T:System.Type" /> .
public
FieldInfo[]
GetFields​(BindingFlags bindingAttr)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return an empty array.
Returns An array of <see cref="T:System.Reflection.FieldInfo" /> objects representing all fields defined for the current <see cref="T:System.Type" /> that match the specified binding constraints.
-or-
An empty array of type <see cref="T:System.Reflection.FieldInfo" /> , if no fields are defined for the current <see cref="T:System.Type" /> , or if none of the defined fields match the binding constraints.
When overridden in a derived class, searches for the fields defined for the current <see cref="T:System.Type" /> , using the specified binding constraints.
public
Type[]
GetFunctionPointerCallingConventions​() Returns <para>An array of <see cref="T:System.Type" /> objects representing all the calling conventions for the current function pointer <see cref="T:System.Type" />.</para> <para>-or-</para> <para>An empty array of type <see cref="T:System.Type" />, if no calling conventions are defined for the current function pointer <see cref="T:System.Type" />.</para> <para>-or-</para> <para>An empty array of type <see cref="T:System.Type" />, if the current function pointer <see cref="T:System.Type" /> is not a modified <see cref="T:System.Type" />. A modified <see cref="T:System.Type" /> is obtained from <see cref="M:System.Reflection.FieldInfo.GetModifiedFieldType" />, <see cref="M:System.Reflection.PropertyInfo.GetModifiedPropertyType" />, or <see cref="M:System.Reflection.ParameterInfo.GetModifiedParameterType" />.</para>
When overridden in a derived class, returns the calling conventions of the current function pointer <see cref="T:System.Type" /> .
public
Type[]
GetFunctionPointerParameterTypes​() Returns <para>An array of <see cref="T:System.Type" /> objects representing all the parameter types for the current function pointer <see cref="T:System.Type" />.</para> <para>-or-</para> <para>An empty array of type <see cref="T:System.Type" />, if no parameters are defined for the current function pointer <see cref="T:System.Type" />.</para>
When overridden in a derived class, returns the parameter types of the current function pointer <see cref="T:System.Type" /> .
public
Type
GetFunctionPointerReturnType​() Returns A <see cref="T:System.Type" /> object representing the return type for the current function pointer <see cref="T:System.Type" /> .
When overridden in a derived class, returns the return type of the current function pointer <see cref="T:System.Type" /> .
public
Type[]
GetGenericArguments​() Returns An array of <see cref="T:System.Type" /> objects that represent the type arguments of a generic type. Returns an empty array if the current type is not a generic type.
Returns an array of <see cref="T:System.Type" /> objects that represent the type arguments of a closed generic type or the type parameters of a generic type definition.
public
Type[]
GetGenericParameterConstraints​() Returns An array of <see cref="T:System.Type" /> objects that represent the constraints on the current generic type parameter.
Returns an array of <see cref="T:System.Type" /> objects that represent the constraints on the current generic type parameter.
public
Type
GetGenericTypeDefinition​() Returns A <see cref="T:System.Type" /> object representing a generic type from which the current type can be constructed.
Returns a <see cref="T:System.Type" /> object that represents a generic type definition from which the current generic type can be constructed.
public
int
GetHashCode​() Returns The hash code for this instance.
Returns the hash code for this instance.
public
Type
GetInterface​(string name)
name
The string containing the name of the interface to get. For generic interfaces, this is the mangled name.
Returns An object representing the interface with the specified name, implemented or inherited by the current <see cref="T:System.Type" /> , if found; otherwise, <see langword="null" /> .
Searches for the interface with the specified name.
public
Type
GetInterface​(string name,
bool ignoreCase)
name
The string containing the name of the interface to get. For generic interfaces, this is the mangled name.
ignoreCase
<see langword="true" /> to ignore the case of that part of <paramref name="name" /> that specifies the simple interface name (the part that specifies the namespace must be correctly cased).
-or-
<see langword="false" /> to perform a case-sensitive search for all parts of <paramref name="name" /> .
Returns An object representing the interface with the specified name, implemented or inherited by the current <see cref="T:System.Type" /> , if found; otherwise, <see langword="null" /> .
When overridden in a derived class, searches for the specified interface, specifying whether to do a case-insensitive search for the interface name.
public
InterfaceMapping
GetInterfaceMap​(Type interfaceType)
interfaceType
The interface type to retrieve a mapping for.
Returns An object that represents the interface mapping for <paramref name="interfaceType" /> .
Returns an interface mapping for the specified interface type.
public
Type[]
GetInterfaces​() Returns An array of <see cref="T:System.Type" /> objects representing all the interfaces implemented or inherited by the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Type" /> , if no interfaces are implemented or inherited by the current <see cref="T:System.Type" /> .
When overridden in a derived class, gets all the interfaces implemented or inherited by the current <see cref="T:System.Type" /> .
public
MemberInfo[]
GetMember​(string name)
name
The string containing the name of the public members to get.
Returns An array of <see cref="T:System.Reflection.MemberInfo" /> objects representing the public members with the specified name, if found; otherwise, an empty array.
Searches for the public members with the specified name.
public
MemberInfo[]
GetMember​(string name,
BindingFlags bindingAttr)
name
The string containing the name of the members to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return an empty array.
Returns An array of <see cref="T:System.Reflection.MemberInfo" /> objects representing the public members with the specified name, if found; otherwise, an empty array.
Searches for the specified members, using the specified binding constraints.
public
MemberInfo[]
GetMember​(string name,
MemberTypes type,
BindingFlags bindingAttr)
name
The string containing the name of the members to get.
type
The value to search for.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return an empty array.
Returns An array of <see cref="T:System.Reflection.MemberInfo" /> objects representing the public members with the specified name, if found; otherwise, an empty array.
Searches for the specified members of the specified member type, using the specified binding constraints.
public
MemberInfo[]
GetMembers​() Returns An array of <see cref="T:System.Reflection.MemberInfo" /> objects representing all the public members of the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Reflection.MemberInfo" /> , if the current <see cref="T:System.Type" /> does not have public members.
Returns all the public members of the current <see cref="T:System.Type" /> .
public
MemberInfo[]
GetMembers​(BindingFlags bindingAttr)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return an empty array.
Returns An array of <see cref="T:System.Reflection.MemberInfo" /> objects representing all members defined for the current <see cref="T:System.Type" /> that match the specified binding constraints.
-or-
An empty array if no members are defined for the current <see cref="T:System.Type" /> , or if none of the defined members match the binding constraints.
When overridden in a derived class, searches for the members defined for the current <see cref="T:System.Type" /> , using the specified binding constraints.
public
MemberInfo
GetMemberWithSameMetadataDefinitionAs​(MemberInfo member)
member
The <see cref="T:System.Reflection.MemberInfo" /> to find on the current <see cref="T:System.Type" /> .
Returns An object representing the member on the current <see cref="T:System.Type" /> that matches the specified member.
Searches for the <see cref="T:System.Reflection.MemberInfo" /> on the current <see cref="T:System.Type" /> that matches the specified <see cref="T:System.Reflection.MemberInfo" /> .
public
MethodInfo
GetMethod​(string name)
name
The string containing the name of the public method to get.
Returns An object that represents the public method with the specified name, if found; otherwise, <see langword="null" /> .
Searches for the public method with the specified name.
public
MethodInfo
GetMethod​(string name,
int genericParameterCount,
BindingFlags bindingAttr,
Binder binder,
CallingConventions callConvention,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the public method to get.
genericParameterCount
The number of generic type parameters of the method.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
callConvention
The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and how the stack is cleaned up.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.
Returns An object representing the method that matches the specified generic parameter count, argument types, modifiers, binding constraints and calling convention, if found; otherwise, <see langword="null" /> .
Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints and the specified calling convention.
public
MethodInfo
GetMethod​(string name,
int genericParameterCount,
BindingFlags bindingAttr,
Binder binder,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the public method to get.
genericParameterCount
The number of generic type parameters of the method.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.
Returns An object representing the method that matches the specified generic parameter count, argument types, modifiers and binding constraints, if found; otherwise, <see langword="null" /> .
Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints.
public
MethodInfo
GetMethod​(string name,
int genericParameterCount,
BindingFlags bindingAttr,
Type[] types)
name
The string containing the name of the method to get.
genericParameterCount
The number of generic type parameters of the method.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
Returns An object representing the method that matches the specified generic parameter count, argument types, and binding constraints, if found; otherwise, <see langword="null" /> .
Searches for the specified method whose parameters match the specified generic parameter count and argument types, using the specified binding constraints.
public
MethodInfo
GetMethod​(string name,
int genericParameterCount,
Type[] types)
name
The string containing the name of the public method to get.
genericParameterCount
The number of generic type parameters of the method.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
Returns An object representing the public method whose parameters match the specified generic parameter count and argument types, if found; otherwise, <see langword="null" /> .
Searches for the specified public method whose parameters match the specified generic parameter count and argument types.
public
MethodInfo
GetMethod​(string name,
int genericParameterCount,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the public method to get.
genericParameterCount
The number of generic type parameters of the method.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.
Returns An object representing the public method that matches the specified generic parameter count, argument types and modifiers, if found; otherwise, <see langword="null" /> .
Searches for the specified public method whose parameters match the specified generic parameter count, argument types and modifiers.
public
MethodInfo
GetMethod​(string name,
BindingFlags bindingAttr)
name
The string containing the name of the method to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
Returns An object representing the method that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified method, using the specified binding constraints.
public
MethodInfo
GetMethod​(string name,
BindingFlags bindingAttr,
Binder binder,
CallingConventions callConvention,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the method to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
callConvention
The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and how the stack is cleaned up.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.
Returns An object representing the method that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.
public
MethodInfo
GetMethod​(string name,
BindingFlags bindingAttr,
Binder binder,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the method to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.
Returns An object representing the method that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints.
public
MethodInfo
GetMethod​(string name,
BindingFlags bindingAttr,
Type[] types)
name
The string containing the name of the method to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or- Default to return <see langword="null" /> .
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or- An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
Returns An object representing the method that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified method whose parameters match the specified argument types, using the specified binding constraints.
public
MethodInfo
GetMethod​(string name,
Type[] types)
name
The string containing the name of the public method to get.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
Returns An object representing the public method whose parameters match the specified argument types, if found; otherwise, <see langword="null" /> .
Searches for the specified public method whose parameters match the specified argument types.
public
MethodInfo
GetMethod​(string name,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the public method to get.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of <see cref="T:System.Type" /> objects (as provided by the <see cref="F:System.Type.EmptyTypes" /> field) to get a method that takes no parameters.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. To be only used when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.
Returns An object representing the public method that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified public method whose parameters match the specified argument types and modifiers.
protected
MethodInfo
GetMethodImpl​(string name,
int genericParameterCount,
BindingFlags bindingAttr,
Binder binder,
CallingConventions callConvention,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the method to get.
genericParameterCount
The number of generic type parameters of the method.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
callConvention
The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and what process cleans up the stack.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a method that takes no parameters.
-or-
<see langword="null" /> . If <paramref name="types" /> is <see langword="null" /> , arguments are not matched.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.
Returns An object representing the method that matches the specified generic parameter count, argument types, modifiers, binding constraints and calling convention, if found; otherwise, <see langword="null" /> .
When overridden in a derived class, searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints and the specified calling convention.
protected
MethodInfo
GetMethodImpl​(string name,
BindingFlags bindingAttr,
Binder binder,
CallingConventions callConvention,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the method to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
callConvention
The object that specifies the set of rules to use regarding the order and layout of arguments, how the return value is passed, what registers are used for arguments, and what process cleans up the stack.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the method to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a method that takes no parameters.
-or-
<see langword="null" /> . If <paramref name="types" /> is <see langword="null" /> , arguments are not matched.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.
Returns An object representing the method that matches the specified requirements, if found; otherwise, <see langword="null" /> .
When overridden in a derived class, searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention.
public
MethodInfo[]
GetMethods​() Returns An array of <see cref="T:System.Reflection.MethodInfo" /> objects representing all the public methods defined for the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Reflection.MethodInfo" /> , if no public methods are defined for the current <see cref="T:System.Type" /> .
Returns all the public methods of the current <see cref="T:System.Type" /> .
public
MethodInfo[]
GetMethods​(BindingFlags bindingAttr)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return an empty array.
Returns An array of <see cref="T:System.Reflection.MethodInfo" /> objects representing all methods defined for the current <see cref="T:System.Type" /> that match the specified binding constraints.
-or-
An empty array of type <see cref="T:System.Reflection.MethodInfo" /> , if no methods are defined for the current <see cref="T:System.Type" /> , or if none of the defined methods match the binding constraints.
When overridden in a derived class, searches for the methods defined for the current <see cref="T:System.Type" /> , using the specified binding constraints.
public
Type
GetNestedType​(string name)
name
The string containing the name of the nested type to get.
Returns An object representing the public nested type with the specified name, if found; otherwise, <see langword="null" /> .
Searches for the public nested type with the specified name.
public
Type
GetNestedType​(string name,
BindingFlags bindingAttr)
name
The string containing the name of the nested type to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
Returns An object representing the nested type that matches the specified requirements, if found; otherwise, <see langword="null" /> .
When overridden in a derived class, searches for the specified nested type, using the specified binding constraints.
public
Type[]
GetNestedTypes​() Returns An array of <see cref="T:System.Type" /> objects representing the public types nested in the current <see cref="T:System.Type" /> (the search is not recursive), or an empty array of type <see cref="T:System.Type" /> if no public types are nested in the current <see cref="T:System.Type" /> .
Returns the public types nested in the current <see cref="T:System.Type" /> .
public
Type[]
GetNestedTypes​(BindingFlags bindingAttr)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
Returns An array of <see cref="T:System.Type" /> objects representing all the types nested in the current <see cref="T:System.Type" /> that match the specified binding constraints (the search is not recursive), or an empty array of type <see cref="T:System.Type" /> , if no nested types are found that match the binding constraints.
When overridden in a derived class, searches for the types nested in the current <see cref="T:System.Type" /> , using the specified binding constraints.
public
Type[]
GetOptionalCustomModifiers​() Returns An array of <see cref="T:System.Type" /> objects that identify the optional custom modifiers of the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Type" /> , if the current <see cref="T:System.Type" /> has no custom modifiers.
-or-
An empty array of type <see cref="T:System.Type" /> , if the current <see cref="T:System.Type" /> is not a modified <see cref="T:System.Type" /> . A modified <see cref="T:System.Type" /> is obtained from <see cref="M:System.Reflection.FieldInfo.GetModifiedFieldType" /> , <see cref="M:System.Reflection.PropertyInfo.GetModifiedPropertyType" /> , or <see cref="M:System.Reflection.ParameterInfo.GetModifiedParameterType" /> .
When overridden in a derived class, returns the optional custom modifiers of the current <see cref="T:System.Type" /> .
public
PropertyInfo[]
GetProperties​() Returns An array of <see cref="T:System.Reflection.PropertyInfo" /> objects representing all public properties of the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Reflection.PropertyInfo" /> , if the current <see cref="T:System.Type" /> does not have public properties.
Returns all the public properties of the current <see cref="T:System.Type" /> .
public
PropertyInfo[]
GetProperties​(BindingFlags bindingAttr)
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return an empty array.
Returns An array of objects representing all properties of the current <see cref="T:System.Type" /> that match the specified binding constraints.
-or-
An empty array of type <see cref="T:System.Reflection.PropertyInfo" /> , if the current <see cref="T:System.Type" /> does not have properties, or if none of the properties match the binding constraints.
When overridden in a derived class, searches for the properties of the current <see cref="T:System.Type" /> , using the specified binding constraints.
public
PropertyInfo
GetProperty​(string name)
name
The string containing the name of the public property to get.
Returns An object representing the public property with the specified name, if found; otherwise, <see langword="null" /> .
Searches for the public property with the specified name.
public
PropertyInfo
GetProperty​(string name,
BindingFlags bindingAttr)
name
The string containing the name of the property to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
Returns An object representing the property that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified property, using the specified binding constraints.
public
PropertyInfo
GetProperty​(string name,
BindingFlags bindingAttr,
Binder binder,
Type returnType,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the property to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
returnType
The return type of the property.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the indexed property to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a property that is not indexed.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.
Returns An object representing the property that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.
public
PropertyInfo
GetProperty​(string name,
Type returnType)
name
The string containing the name of the public property to get.
returnType
The return type of the property.
Returns An object representing the public property with the specified name, if found; otherwise, <see langword="null" /> .
Searches for the public property with the specified name and return type.
public
PropertyInfo
GetProperty​(string name,
Type returnType,
Type[] types)
name
The string containing the name of the public property to get.
returnType
The return type of the property.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the indexed property to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a property that is not indexed.
Returns An object representing the public property whose parameters match the specified argument types, if found; otherwise, <see langword="null" /> .
Searches for the specified public property whose parameters match the specified argument types.
public
PropertyInfo
GetProperty​(string name,
Type returnType,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the public property to get.
returnType
The return type of the property.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the indexed property to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a property that is not indexed.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.
Returns An object representing the public property that matches the specified requirements, if found; otherwise, <see langword="null" /> .
Searches for the specified public property whose parameters match the specified argument types and modifiers.
public
PropertyInfo
GetProperty​(string name,
Type[] types)
name
The string containing the name of the public property to get.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the indexed property to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a property that is not indexed.
Returns An object representing the public property whose parameters match the specified argument types, if found; otherwise, <see langword="null" /> .
Searches for the specified public property whose parameters match the specified argument types.
protected
PropertyInfo
GetPropertyImpl​(string name,
BindingFlags bindingAttr,
Binder binder,
Type returnType,
Type[] types,
ParameterModifier[] modifiers)
name
The string containing the name of the property to get.
bindingAttr
A bitwise combination of the enumeration values that specify how the search is conducted.
-or-
<see cref="F:System.Reflection.BindingFlags.Default" /> to return <see langword="null" /> .
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded member, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> .
returnType
The return type of the property.
types
An array of <see cref="T:System.Type" /> objects representing the number, order, and type of the parameters for the indexed property to get.
-or-
An empty array of the type <see cref="T:System.Type" /> (that is, Type[] types = new Type[0]) to get a property that is not indexed.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="types" /> array. The default binder does not process this parameter.
Returns An object representing the property that matches the specified requirements, if found; otherwise, <see langword="null" /> .
When overridden in a derived class, searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.
public
Type[]
GetRequiredCustomModifiers​() Returns An array of <see cref="T:System.Type" /> objects that identify the required custom modifiers of the current <see cref="T:System.Type" /> .
-or-
An empty array of type <see cref="T:System.Type" /> , if the current <see cref="T:System.Type" /> has no custom modifiers.
-or-
An empty array of type <see cref="T:System.Type" /> , if the current <see cref="T:System.Type" /> is not a modified <see cref="T:System.Type" /> . A modified <see cref="T:System.Type" /> is obtained from <see cref="M:System.Reflection.FieldInfo.GetModifiedFieldType" /> , <see cref="M:System.Reflection.PropertyInfo.GetModifiedPropertyType" /> , or <see cref="M:System.Reflection.ParameterInfo.GetModifiedParameterType" /> .
When overridden in a derived class, returns the required custom modifiers of the current <see cref="T:System.Type" /> .
Gets the current <see cref="T:System.Type" /> .
Returns the underlying type code of this <see cref="T:System.Type" /> instance.
protected
bool
HasElementTypeImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> is an array, a pointer, or is passed by reference; otherwise, <see langword="false" /> .
When overridden in a derived class, implements the <see cref="P:System.Type.HasElementType" /> property and determines whether the current <see cref="T:System.Type" /> encompasses or refers to another type; that is, whether the current <see cref="T:System.Type" /> is an array, a pointer, or is passed by reference.
public
object
InvokeMember​(string name,
BindingFlags invokeAttr,
Binder binder,
object target,
object[] args)
name
The string containing the name of the constructor, method, property, or field member to invoke.
-or-
An empty string ("") to invoke the default member.
-or-
For <see langword="IDispatch" /> members, a string representing the DispID, for example "[DispID=3]".
invokeAttr
A bitwise combination of the enumeration values that specify how the search is conducted. The access can be one of the <see langword="BindingFlags" /> such as <see langword="Public" /> , <see langword="NonPublic" /> , <see langword="Private" /> , <see langword="InvokeMethod" /> , <see langword="GetField" /> , and so on. The type of lookup need not be specified. If the type of lookup is omitted, <see langword="BindingFlags.Public" /> | <see langword="BindingFlags.Instance" /> | <see langword="BindingFlags.Static" /> are used.
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> . Note that explicitly defining a <see cref="T:System.Reflection.Binder" /> object may be required for successfully invoking method overloads with variable arguments.
target
The object on which to invoke the specified member.
args
An array containing the arguments to pass to the member to invoke.
Returns An object representing the return value of the invoked member.
Invokes the specified member, using the specified binding constraints and matching the specified argument list.
public
object
InvokeMember​(string name,
BindingFlags invokeAttr,
Binder binder,
object target,
object[] args,
CultureInfo culture)
name
The string containing the name of the constructor, method, property, or field member to invoke.
-or-
An empty string ("") to invoke the default member.
-or-
For <see langword="IDispatch" /> members, a string representing the DispID, for example "[DispID=3]".
invokeAttr
A bitwise combination of the enumeration values that specify how the search is conducted. The access can be one of the <see langword="BindingFlags" /> such as <see langword="Public" /> , <see langword="NonPublic" /> , <see langword="Private" /> , <see langword="InvokeMethod" /> , <see langword="GetField" /> , and so on. The type of lookup need not be specified. If the type of lookup is omitted, <see langword="BindingFlags.Public" /> | <see langword="BindingFlags.Instance" /> | <see langword="BindingFlags.Static" /> are used.
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> . Note that explicitly defining a <see cref="T:System.Reflection.Binder" /> object may be required for successfully invoking method overloads with variable arguments.
target
The object on which to invoke the specified member.
args
An array containing the arguments to pass to the member to invoke.
culture
The object representing the globalization locale to use, which may be necessary for locale-specific conversions, such as converting a numeric <see cref="T:System.String" /> to a <see cref="T:System.Double" /> .
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic) to use the current thread's <see cref="T:System.Globalization.CultureInfo" /> .
Returns An object representing the return value of the invoked member.
Invokes the specified member, using the specified binding constraints and matching the specified argument list and culture.
public
object
InvokeMember​(string name,
BindingFlags invokeAttr,
Binder binder,
object target,
object[] args,
ParameterModifier[] modifiers,
CultureInfo culture,
string[] namedParameters)
name
The string containing the name of the constructor, method, property, or field member to invoke.
-or-
An empty string ("") to invoke the default member.
-or-
For <see langword="IDispatch" /> members, a string representing the DispID, for example "[DispID=3]".
invokeAttr
A bitwise combination of the enumeration values that specify how the search is conducted. The access can be one of the <see langword="BindingFlags" /> such as <see langword="Public" /> , <see langword="NonPublic" /> , <see langword="Private" /> , <see langword="InvokeMethod" /> , <see langword="GetField" /> , and so on. The type of lookup need not be specified. If the type of lookup is omitted, <see langword="BindingFlags.Public" /> | <see langword="BindingFlags.Instance" /> | <see langword="BindingFlags.Static" /> are used.
binder
An object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection.
-or-
A null reference (Nothing in Visual Basic), to use the <see cref="P:System.Type.DefaultBinder" /> . Note that explicitly defining a <see cref="T:System.Reflection.Binder" /> object may be required for successfully invoking method overloads with variable arguments.
target
The object on which to invoke the specified member.
args
An array containing the arguments to pass to the member to invoke.
modifiers
An array of <see cref="T:System.Reflection.ParameterModifier" /> objects representing the attributes associated with the corresponding element in the <paramref name="args" /> array. A parameter's associated attributes are stored in the member's signature.
The default binder processes this parameter only when calling a COM component.
culture
The <see cref="T:System.Globalization.CultureInfo" /> object representing the globalization locale to use, which may be necessary for locale-specific conversions, such as converting a numeric String to a Double.
-or-
A null reference ( <see langword="Nothing" /> in Visual Basic) to use the current thread's <see cref="T:System.Globalization.CultureInfo" /> .
namedParameters
An array containing the names of the parameters to which the values in the <paramref name="args" /> array are passed.
Returns An object representing the return value of the invoked member.
When overridden in a derived class, invokes the specified member, using the specified binding constraints and matching the specified argument list, modifiers and culture.
protected
bool
IsArrayImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> is an array; otherwise, <see langword="false" /> .
When overridden in a derived class, implements the <see cref="P:System.Type.IsArray" /> property and determines whether the <see cref="T:System.Type" /> is an array.
public
bool
IsAssignableFrom​(Type c)
c
The type to compare with the current type.
Returns <see langword="true" /> if any of the following conditions is true:
- <paramref name="c" /> and the current instance represent the same type.
- <paramref name="c" /> is derived either directly or indirectly from the current instance. <paramref name="c" /> is derived directly from the current instance if it inherits from the current instance; <paramref name="c" /> is derived indirectly from the current instance if it inherits from a succession of one or more classes that inherit from the current instance.
- The current instance is an interface that <paramref name="c" /> implements.
- <paramref name="c" /> is a generic type parameter, and the current instance represents one of the constraints of <paramref name="c" /> .
- <paramref name="c" /> represents a value type, and the current instance represents <c>Nullable<c></c> ( <c>Nullable(Of c)</c> in Visual Basic).
<see langword="false" /> if none of these conditions are true, or if <paramref name="c" /> is <see langword="null" /> .
Determines whether an instance of a specified type <paramref name="c" /> can be assigned to a variable of the current type.
public
bool
IsAssignableTo​(Type targetType)
targetType
The type to compare with the current type.
Returns <see langword="true" /> if any of the following conditions is true:
- The current instance and <paramref name="targetType" /> represent the same type.
- The current type is derived either directly or indirectly from <paramref name="targetType" /> . The current type is derived directly from <paramref name="targetType" /> if it inherits from <paramref name="targetType" /> ; the current type is derived indirectly from <paramref name="targetType" /> if it inherits from a succession of one or more classes that inherit from <paramref name="targetType" /> .
- <paramref name="targetType" /> is an interface that the current type implements.
- The current type is a generic type parameter, and <paramref name="targetType" /> represents one of the constraints of the current type.
- The current type represents a value type, and <paramref name="targetType" /> represents <c>Nullable<c></c> ( <c>Nullable(Of c)</c> in Visual Basic).
<see langword="false" /> if none of these conditions are true, or if <paramref name="targetType" /> is <see langword="null" /> .
Determines whether the current type can be assigned to a variable of the specified <paramref name="targetType" /> .
protected
bool
IsByRefImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> is passed by reference; otherwise, <see langword="false" /> .
When overridden in a derived class, implements the <see cref="P:System.Type.IsByRef" /> property and determines whether the <see cref="T:System.Type" /> is passed by reference.
protected
bool
IsCOMObjectImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> is a COM object; otherwise, <see langword="false" /> .
When overridden in a derived class, implements the <see cref="P:System.Type.IsCOMObject" /> property and determines whether the <see cref="T:System.Type" /> is a COM object.
protected
bool
IsContextfulImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> can be hosted in a context; otherwise, <see langword="false" /> .
Implements the <see cref="P:System.Type.IsContextful" /> property and determines whether the <see cref="T:System.Type" /> can be hosted in a context.
public
bool
IsEnumDefined​(object value)
value
The value to be tested.
Returns <see langword="true" /> if the specified value is a member of the current enumeration type; otherwise, <see langword="false" /> .
Returns a value that indicates whether the specified value exists in the current enumeration type.
public
bool
IsEquivalentTo​(Type other)
other
The COM type that is tested for equivalence with the current type.
Returns <see langword="true" /> if the COM types are equivalent; otherwise, <see langword="false" /> . This method also returns <see langword="false" /> if one type is in an assembly that is loaded for execution, and the other is in an assembly that is loaded into the reflection-only context.
Determines whether two COM types have the same identity and are eligible for type equivalence.
public
bool
IsInstanceOfType​(object o)
o
The object to compare with the current type.
Returns <see langword="true" /> if the current <see langword="Type" /> is in the inheritance hierarchy of the object represented by <paramref name="o" /> , or if the current <see langword="Type" /> is an interface that <paramref name="o" /> implements. <see langword="false" /> if neither of these conditions is the case, if <paramref name="o" /> is <see langword="null" /> , or if the current <see langword="Type" /> is an open generic type (that is, <see cref="P:System.Type.ContainsGenericParameters" /> returns <see langword="true" /> ).
Determines whether the specified object is an instance of the current <see cref="T:System.Type" /> .
protected
bool
IsMarshalByRefImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> is marshaled by reference; otherwise, <see langword="false" /> .
Implements the <see cref="P:System.Type.IsMarshalByRef" /> property and determines whether the <see cref="T:System.Type" /> is marshaled by reference.
protected
bool
IsPointerImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> is a pointer; otherwise, <see langword="false" /> .
When overridden in a derived class, implements the <see cref="P:System.Type.IsPointer" /> property and determines whether the <see cref="T:System.Type" /> is a pointer.
protected
bool
IsPrimitiveImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> is one of the primitive types; otherwise, <see langword="false" /> .
When overridden in a derived class, implements the <see cref="P:System.Type.IsPrimitive" /> property and determines whether the <see cref="T:System.Type" /> is one of the primitive types.
public
bool
IsSubclassOf​(Type c)
c
The type to compare with the current type.
Returns <see langword="true" /> if the current <see langword="Type" /> derives from <paramref name="c" /> ; otherwise, <see langword="false" /> . This method also returns <see langword="false" /> if <paramref name="c" /> and the current <see langword="Type" /> are equal.
Determines whether the current <see cref="T:System.Type" /> derives from the specified <see cref="T:System.Type" /> .
protected
bool
IsValueTypeImpl​() Returns <see langword="true" /> if the <see cref="T:System.Type" /> is a value type; otherwise, <see langword="false" /> .
Implements the <see cref="P:System.Type.IsValueType" /> property and determines whether the <see cref="T:System.Type" /> is a value type; that is, not a class or an interface.
public
Type
MakeArrayType​() Returns A <see cref="T:System.Type" /> object representing a one-dimensional array of the current type, with a lower bound of zero.
Returns a <see cref="T:System.Type" /> object representing a one-dimensional array of the current type, with a lower bound of zero.
public
Type
MakeArrayType​(int rank)
rank
The number of dimensions for the array. This number must be less than or equal to 32.
Returns An object representing an array of the current type, with the specified number of dimensions.
Returns a <see cref="T:System.Type" /> object representing an array of the current type, with the specified number of dimensions.
public
Type
MakeByRefType​() Returns A <see cref="T:System.Type" /> object that represents the current type when passed as a <see langword="ref" /> parameter ( <see langword="ByRef" /> parameter in Visual Basic).
Returns a <see cref="T:System.Type" /> object that represents the current type when passed as a <see langword="ref" /> parameter ( <see langword="ByRef" /> parameter in Visual Basic).
public
Type
MakeGenericType​(Type[] typeArguments)
typeArguments
An array of types to be substituted for the type parameters of the current generic type.
Returns A <see cref="T:System.Type" /> representing the constructed type formed by substituting the elements of <paramref name="typeArguments" /> for the type parameters of the current generic type.
Substitutes the elements of an array of types for the type parameters of the current generic type definition and returns a <see cref="T:System.Type" /> object representing the resulting constructed type.
public
Type
MakePointerType​() Returns A <see cref="T:System.Type" /> object that represents a pointer to the current type.
Returns a <see cref="T:System.Type" /> object that represents a pointer to the current type.
public
string
ToString​() Returns A <see cref="T:System.String" /> representing the name of the current <see cref="T:System.Type" /> .
Returns a <see langword="String" /> representing the name of the current <see langword="Type" /> .
public
object[]
GetCustomAttributes​(bool inherit)
Inherited from MemberInfo
inherit
<see langword="true" /> to search this member's inheritance chain to find the attributes; otherwise, <see langword="false" /> . This parameter is ignored for properties and events.
Returns An array that contains all the custom attributes applied to this member, or an array with zero elements if no attributes are defined.
When overridden in a derived class, returns an array of all custom attributes applied to this member.
public
object[]
GetCustomAttributes​(Type attributeType,
bool inherit)
Inherited from MemberInfo
attributeType
The type of attribute to search for. Only attributes that are assignable to this type are returned.
inherit
<see langword="true" /> to search this member's inheritance chain to find the attributes; otherwise, <see langword="false" /> . This parameter is ignored for properties and events.
Returns An array of custom attributes applied to this member, or an array with zero elements if no attributes assignable to <paramref name="attributeType" /> have been applied.
When overridden in a derived class, returns an array of custom attributes applied to this member and identified by <see cref="T:System.Type" /> .
public
IList`1
GetCustomAttributesData​()
Inherited from MemberInfo
Returns A generic list of <see cref="T:System.Reflection.CustomAttributeData" /> objects representing data about the attributes that have been applied to the target member.
Returns a list of <see cref="T:System.Reflection.CustomAttributeData" /> objects representing data about the attributes that have been applied to the target member.
public
bool
IsDefined​(Type attributeType,
bool inherit)
Inherited from MemberInfo
attributeType
The type of custom attribute to search for. The search includes derived types.
inherit
<see langword="true" /> to search this member's inheritance chain to find the attributes; otherwise, <see langword="false" /> . This parameter is ignored for properties and events.
Returns <see langword="true" /> if one or more instances of <paramref name="attributeType" /> or any of its derived types is applied to this member; otherwise, <see langword="false" /> .
When overridden in a derived class, indicates whether one or more attributes of the specified type or of its derived types is applied to this member.
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .