Type Class |
Namespace: System
[SerializableAttribute] public abstract class Type : MemberInfo, _Type, IReflect
The Type type exposes the following members.
Name | Description | |
---|---|---|
Equals(Object) | Determines if the underlying system type of the current Type is the same as the underlying system type of the specified Object. (Overrides MemberInfoEquals(Object).) | |
Equals(Type) | Determines if the underlying system type of the current Type is the same as the underlying system type of the specified Type. | |
GetConstructor(Type) | Searches for a public instance constructor whose parameters match the types in the specified array. | |
GetConstructor(BindingFlags, Binder, Type, ParameterModifier) | Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints. | |
GetConstructor(BindingFlags, Binder, CallingConventions, Type, ParameterModifier) | Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention. | |
GetConstructors | Returns all the public constructors defined for the current Type. | |
GetConstructors(BindingFlags) | When overridden in a derived class, searches for the constructors defined for the current Type, using the specified BindingFlags. | |
GetElementType | When overridden in a derived class, returns the Type of the object encompassed or referred to by the current array, pointer or reference type. | |
GetEvents | Returns all the public events that are declared or inherited by the current Type. | |
GetEvents(BindingFlags) | When overridden in a derived class, searches for events that are declared or inherited by the current Type, using the specified binding constraints. | |
GetField(String) | Searches for the public field with the specified name. | |
GetField(String, BindingFlags) | Searches for the specified field, using the specified binding constraints. | |
GetFields | Returns all the public fields of the current Type. | |
GetFields(BindingFlags) | When overridden in a derived class, searches for the fields defined for the current Type, using the specified binding constraints. | |
GetGenericArguments | Returns an array of Type objects that represent the type arguments of a generic type or the type parameters of a generic type definition. | |
GetGenericTypeDefinition | Returns a Type object that represents a generic type definition from which the current generic type can be constructed. | |
GetHashCode | Returns the hash code for this instance. (Overrides MemberInfoGetHashCode.) | |
GetInterfaces | When overridden in a derived class, gets all the interfaces implemented or inherited by the current Type. | |
GetMember(String) | Searches for the public members with the specified name. | |
GetMember(String, BindingFlags) | Searches for the specified members, using the specified binding constraints. | |
GetMember(String, MemberTypes, BindingFlags) | Searches for the specified members of the specified member type, using the specified binding constraints. | |
GetMembers | Returns all the public members of the current Type. | |
GetMembers(BindingFlags) | When overridden in a derived class, searches for the members defined for the current Type, using the specified binding constraints. | |
GetMethod(String) | Searches for the public method with the specified name. | |
GetMethod(String, BindingFlags) | Searches for the specified method, using the specified binding constraints. | |
GetMethod(String, Type) | Searches for the specified public method whose parameters match the specified argument types. | |
GetMethod(String, Type, ParameterModifier) | Searches for the specified public method whose parameters match the specified argument types and modifiers. | |
GetMethod(String, BindingFlags, Binder, Type, ParameterModifier) | Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints. | |
GetMethod(String, BindingFlags, Binder, CallingConventions, Type, ParameterModifier) | Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention. | |
GetMethods | Returns all the public methods of the current Type. | |
GetMethods(BindingFlags) | When overridden in a derived class, searches for the methods defined for the current Type, using the specified binding constraints. | |
GetProperties | Returns all the public properties of the current Type. | |
GetProperties(BindingFlags) | When overridden in a derived class, searches for the properties of the current Type, using the specified binding constraints. | |
GetProperty(String) | Searches for the public property with the specified name. | |
GetProperty(String, BindingFlags) | Searches for the specified property, using the specified binding constraints. | |
GetProperty(String, Type) | Searches for the public property with the specified name and return type. | |
GetProperty(String, Type) | Searches for the specified public property whose parameters match the specified argument types. | |
GetProperty(String, Type, Type) | Searches for the specified public property whose parameters match the specified argument types. | |
GetProperty(String, Type, Type, ParameterModifier) | Searches for the specified public property whose parameters match the specified argument types and modifiers. | |
GetProperty(String, BindingFlags, Binder, Type, Type, ParameterModifier) | Searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints. | |
GetType | Gets the current Type. | |
GetType(String) | Gets the Type with the specified name, performing a case-sensitive search. | |
GetType(String, Boolean) | Gets the Type with the specified name, performing a case-sensitive search and specifying whether to throw an exception if the type is not found. | |
GetType(String, Boolean, Boolean) | Gets the Type with the specified name, specifying whether to perform a case-sensitive search and whether to throw an exception if the type is not found. | |
GetType(String, FuncAssemblyName, Assembly, FuncAssembly, String, Boolean, Type) | Gets the type with the specified name, optionally providing custom methods to resolve the assembly and the type. | |
GetType(String, FuncAssemblyName, Assembly, FuncAssembly, String, Boolean, Type, Boolean) | Gets the type with the specified name, specifying whether to throw an exception if the type is not found, and optionally providing custom methods to resolve the assembly and the type. | |
GetType(String, FuncAssemblyName, Assembly, FuncAssembly, String, Boolean, Type, Boolean, Boolean) | Gets the type with the specified name, specifying whether to perform a case-sensitive search and whether to throw an exception if the type is not found, and optionally providing custom methods to resolve the assembly and the type. | |
GetTypeFromHandle | Gets the type referenced by the specified type handle. | |
IsAssignableFrom | Determines whether an instance of the current Type can be assigned from an instance of the specified Type. | |
IsEquivalentTo | Determines whether two COM types have the same identity and are eligible for type equivalence. | |
IsSubclassOf | Determines whether the class represented by the current Type derives from the class represented by the specified Type. | |
MakeGenericType | Substitutes the elements of an array of types for the type parameters of the current generic type definition and returns a Type object representing the resulting constructed type. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a String representing the name of the current Type. (Overrides ObjectToString.) |
Name | Description | |
---|---|---|
Equality | Indicates whether two Type objects are equal. | |
Inequality | Indicates whether two Type objects are not equal. |
Name | Description | |
---|---|---|
Delimiter | Separates names in the namespace of the Type. This field is read-only. | |
EmptyTypes | Represents an empty array of type Type. This field is read-only. | |
FilterAttribute | Represents the member filter used on attributes. This field is read-only. | |
FilterName | Represents the case-sensitive member filter used on names. This field is read-only. | |
FilterNameIgnoreCase | Represents the case-insensitive member filter used on names. This field is read-only. | |
Missing | Represents a missing value in the Type information. This field is read-only. |
Name | Description | |
---|---|---|
Assembly | ||
AssemblyQualifiedName | Gets the assembly-qualified name of the Type, which includes the name of the assembly from which the Type was loaded. | |
BaseType | Gets the type from which the current Type directly inherits. | |
ContainsGenericParameters | Gets a value indicating whether the current Type object has type parameters that have not been replaced by specific types. | |
DeclaringType | Gets the type that declares the current nested type or generic type parameter. (Overrides MemberInfoDeclaringType.) | |
FullName | Gets the fully qualified name of the Type, including the namespace of the Type but not the assembly. | |
IsArray | Gets a value indicating whether the Type is an array. | |
IsByRef | Gets a value indicating whether the Type is passed by reference. | |
IsEnum | Gets a value indicating whether the current Type represents an enumeration. | |
IsGenericParameter | Gets a value indicating whether the current Type represents a type parameter in the definition of a generic type or method. | |
IsGenericType | Gets a value indicating whether the current type is a generic type. | |
IsGenericTypeDefinition | Gets a value indicating whether the current Type represents a generic type definition, from which other generic types can be constructed. | |
IsInterface | Gets a value indicating whether the Type is an interface; that is, not a class or a value type. | |
IsPublic | Gets a value indicating whether the Type is declared public. | |
IsSpecialName | Gets a value indicating whether the Type has a name that requires special handling. | |
IsValueType | Gets a value indicating whether the Type is a value type. | |
Name | Gets the name of the current member. (Inherited from MemberInfo.) | |
Namespace | Gets the namespace of the Type. |