Click or drag to resize
Type Class
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.
Inheritance Hierarchy

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public abstract class Type : MemberInfo, 
	_Type, IReflect

The Type type exposes the following members.

Methods
  NameDescription
Public methodEquals(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).)
Public methodEquals(Type)
Determines if the underlying system type of the current Type is the same as the underlying system type of the specified Type.
Public methodGetConstructor(Type)
Searches for a public instance constructor whose parameters match the types in the specified array.
Public methodGetConstructor(BindingFlags, Binder, Type, ParameterModifier)
Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints.
Public methodGetConstructor(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.
Public methodGetConstructors
Returns all the public constructors defined for the current Type.
Public methodGetConstructors(BindingFlags)
When overridden in a derived class, searches for the constructors defined for the current Type, using the specified BindingFlags.
Public methodGetElementType
When overridden in a derived class, returns the Type of the object encompassed or referred to by the current array, pointer or reference type.
Public methodGetEvents
Returns all the public events that are declared or inherited by the current Type.
Public methodGetEvents(BindingFlags)
When overridden in a derived class, searches for events that are declared or inherited by the current Type, using the specified binding constraints.
Public methodGetField(String)
Searches for the public field with the specified name.
Public methodGetField(String, BindingFlags)
Searches for the specified field, using the specified binding constraints.
Public methodGetFields
Returns all the public fields of the current Type.
Public methodGetFields(BindingFlags)
When overridden in a derived class, searches for the fields defined for the current Type, using the specified binding constraints.
Public methodGetGenericArguments
Returns an array of Type objects that represent the type arguments of a generic type or the type parameters of a generic type definition.
Public methodGetGenericTypeDefinition
Returns a Type object that represents a generic type definition from which the current generic type can be constructed.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides MemberInfoGetHashCode.)
Public methodGetInterfaces
When overridden in a derived class, gets all the interfaces implemented or inherited by the current Type.
Public methodGetMember(String)
Searches for the public members with the specified name.
Public methodGetMember(String, BindingFlags)
Searches for the specified members, using the specified binding constraints.
Public methodGetMember(String, MemberTypes, BindingFlags)
Searches for the specified members of the specified member type, using the specified binding constraints.
Public methodGetMembers
Returns all the public members of the current Type.
Public methodGetMembers(BindingFlags)
When overridden in a derived class, searches for the members defined for the current Type, using the specified binding constraints.
Public methodGetMethod(String)
Searches for the public method with the specified name.
Public methodGetMethod(String, BindingFlags)
Searches for the specified method, using the specified binding constraints.
Public methodGetMethod(String, Type)
Searches for the specified public method whose parameters match the specified argument types.
Public methodGetMethod(String, Type, ParameterModifier)
Searches for the specified public method whose parameters match the specified argument types and modifiers.
Public methodGetMethod(String, BindingFlags, Binder, Type, ParameterModifier)
Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints.
Public methodGetMethod(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.
Public methodGetMethods
Returns all the public methods of the current Type.
Public methodGetMethods(BindingFlags)
When overridden in a derived class, searches for the methods defined for the current Type, using the specified binding constraints.
Public methodGetProperties
Returns all the public properties of the current Type.
Public methodGetProperties(BindingFlags)
When overridden in a derived class, searches for the properties of the current Type, using the specified binding constraints.
Public methodGetProperty(String)
Searches for the public property with the specified name.
Public methodGetProperty(String, BindingFlags)
Searches for the specified property, using the specified binding constraints.
Public methodGetProperty(String, Type)
Searches for the public property with the specified name and return type.
Public methodGetProperty(String, Type)
Searches for the specified public property whose parameters match the specified argument types.
Public methodGetProperty(String, Type, Type)
Searches for the specified public property whose parameters match the specified argument types.
Public methodGetProperty(String, Type, Type, ParameterModifier)
Searches for the specified public property whose parameters match the specified argument types and modifiers.
Public methodGetProperty(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.
Public methodGetType
Gets the current Type.
Public methodStatic memberGetType(String)
Gets the Type with the specified name, performing a case-sensitive search.
Public methodStatic memberGetType(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.
Public methodStatic memberGetType(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.
Public methodStatic memberGetType(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.
Public methodStatic memberGetType(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.
Public methodStatic memberGetType(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.
Public methodStatic memberGetTypeFromHandle
Gets the type referenced by the specified type handle.
Public methodIsAssignableFrom
Determines whether an instance of the current Type can be assigned from an instance of the specified Type.
Public methodIsEquivalentTo
Determines whether two COM types have the same identity and are eligible for type equivalence.
Public methodIsSubclassOf
Determines whether the class represented by the current Type derives from the class represented by the specified Type.
Public methodMakeGenericType
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.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String representing the name of the current Type.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Indicates whether two Type objects are equal.
Public operatorStatic memberInequality
Indicates whether two Type objects are not equal.
Top
Fields
  NameDescription
Public fieldStatic memberDelimiter
Separates names in the namespace of the Type. This field is read-only.
Public fieldStatic memberEmptyTypes
Represents an empty array of type Type. This field is read-only.
Public fieldStatic memberFilterAttribute
Represents the member filter used on attributes. This field is read-only.
Public fieldStatic memberFilterName
Represents the case-sensitive member filter used on names. This field is read-only.
Public fieldStatic memberFilterNameIgnoreCase
Represents the case-insensitive member filter used on names. This field is read-only.
Public fieldStatic memberMissing
Represents a missing value in the Type information. This field is read-only.
Top
Properties
  NameDescription
Public propertyAssembly
Gets the Assembly in which the type is declared. For generic types, gets the Assembly in which the generic type is defined.
Public propertyAssemblyQualifiedName
Gets the assembly-qualified name of the Type, which includes the name of the assembly from which the Type was loaded.
Public propertyBaseType
Gets the type from which the current Type directly inherits.
Public propertyContainsGenericParameters
Gets a value indicating whether the current Type object has type parameters that have not been replaced by specific types.
Public propertyDeclaringType
Gets the type that declares the current nested type or generic type parameter.
(Overrides MemberInfoDeclaringType.)
Public propertyFullName
Gets the fully qualified name of the Type, including the namespace of the Type but not the assembly.
Public propertyIsArray
Gets a value indicating whether the Type is an array.
Public propertyIsByRef
Gets a value indicating whether the Type is passed by reference.
Public propertyIsEnum
Gets a value indicating whether the current Type represents an enumeration.
Public propertyIsGenericParameter
Gets a value indicating whether the current Type represents a type parameter in the definition of a generic type or method.
Public propertyIsGenericType
Gets a value indicating whether the current type is a generic type.
Public propertyIsGenericTypeDefinition
Gets a value indicating whether the current Type represents a generic type definition, from which other generic types can be constructed.
Public propertyIsInterface
Gets a value indicating whether the Type is an interface; that is, not a class or a value type.
Public propertyIsPublic
Gets a value indicating whether the Type is declared public.
Public propertyIsSpecialName
Gets a value indicating whether the Type has a name that requires special handling.
Public propertyIsValueType
Gets a value indicating whether the Type is a value type.
Public propertyName
Gets the name of the current member.
(Inherited from MemberInfo.)
Public propertyNamespace
Gets the namespace of the Type.
Top
See Also