Mono Class Library: Overview

System.Type: Members

The members of System.Type are listed below.

See Also: Inherited members from System.Reflection.MemberInfo

Protected Constructors

Constructs a new instance of the Type class.

Public Fields

static readonly
Delimiterchar. Specifies the character that separates elements in the fully qualified name of a Type .
static readonly
EmptyTypesType[]. Returns an empty array of type Type .
static readonly
FilterAttributeSystem.Reflection.MemberFilter. Documentation for this section has not yet been entered.
static readonly
FilterNameSystem.Reflection.MemberFilter. Documentation for this section has not yet been entered.
static readonly
FilterNameIgnoreCaseSystem.Reflection.MemberFilter. Documentation for this section has not yet been entered.
static readonly
Missingobject (null). Represents a missing value in the Type information.

Public Properties

[read-only]
abstract
AssemblySystem.Reflection.Assembly. Gets the System.Reflection.Assembly in which the type is declared. For generic types, gets the System.Reflection.Assembly that contains the generic type definition.
[read-only]
abstract
AssemblyQualifiedNamestring. Gets the fully qualified name of the type represented by the current instance including the name of the assembly from which the Type was loaded.
[read-only]
AttributesSystem.Reflection.TypeAttributes. Gets the attributes associated with the type represented by the current instance.
[read-only]
abstract
BaseTypeType. Gets the base Type of the current Type .
[read-only]
ContainsGenericParametersbool. Gets a value that indicates whether a Type object contains unassigned generic parameters.
[read-only]
DeclaringMethodSystem.Reflection.MethodBase. If the current Type represents a type parameter of a generic method, gets a System.Reflection.MethodInfo that represents the declaring method.
[read-only]
override
DeclaringTypeType. Gets the type that declares the type represented by the current instance.
[read-only]
static
DefaultBinderSystem.Reflection.Binder. Gets the default binder used by the system.
[read-only]
abstract
FullNamestring. Gets the fully qualified name of the type represented by the current instance.
[read-only]
GenericParameterAttributesSystem.Reflection.GenericParameterAttributes. Gets a combination of System.Reflection.GenericParameterAttributes flags that describe the variance and special constraints of the current generic type parameter.
[read-only]
GenericParameterPositionint. For a Type object that represents a type parameter of a generic type or generic method, gets the position of the type parameter in the type parameter list of the generic type or generic method.
[read-only]
abstract
GUIDGuid. Documentation for this section has not yet been entered.
[read-only]
HasElementTypebool. Gets a bool value indicating whether the type represented by the current instance encompasses or refers to another type; that is, whether the current Type is an array, a pointer, or is passed by reference.
[read-only]
IsAbstractbool. Gets a bool value indicating whether the type represented by the current instance is abstract and is required to be overridden.
[read-only]
IsAnsiClassbool. Indicates whether the type attribute System.Reflection.TypeAttributes.AnsiClass is selected for the current type.
[read-only]
IsArraybool. Gets a bool value that indicates whether the current Type represents an array.
[read-only]
IsAutoClassbool. Indicates whether the type attribute System.Reflection.TypeAttributes.AutoClass is selected for the current type.
[read-only]
IsAutoLayoutbool. Gets a bool value indicating whether the type layout attribute System.Reflection.TypeAttributes.AutoLayout is specified for the Type.
[read-only]
IsByRefbool. Gets a bool value indicating whether the Type is passed by reference.
[read-only]
IsClassbool. Gets a bool value that indicates whether the current Type represents a class.
[read-only]
IsCOMObjectbool. Documentation for this section has not yet been entered.
[read-only]
IsContextfulbool. Documentation for this section has not yet been entered.
[read-only]
IsEnumbool. Gets a bool value that indicates whether the current Type represents an enumeration.
[read-only]
IsExplicitLayoutbool. Gets a bool value indicating whether the type layout attribute System.Reflection.TypeAttributes.ExplicitLayout is specified for the Type.
[read-only]
IsGenericParameterbool. Gets a value that indicates whether the current type represents a type parameter of a generic type or method.
[read-only]
IsGenericTypebool. Gets a value that indicates whether the current type has type arguments, and is therefore a generic type.
[read-only]
IsGenericTypeDefinitionbool. Gets a value that indicates whether the current object represents the definition of a generic type, or whether one or more of its type parameters has been specified.
[read-only]
IsImportbool. Gets a bool value indicating whether the Type was imported from another class.
[read-only]
IsInterfacebool. Gets a bool value that indicates whether the current Type represents an interface.
[read-only]
IsLayoutSequentialbool. Gets a bool value indicating whether the type layout attribute System.Reflection.TypeAttributes.SequentialLayout is specified for the Type.
[read-only]
IsMarshalByRefbool. Gets a bool value indicating whether the current type is marshaled by reference.
[read-only]
IsNestedbool. Documentation for this section has not yet been entered.
[read-only]
IsNestedAssemblybool. Gets a bool value indicating whether the current Type is nested and visible only within its own assembly.
[read-only]
IsNestedFamANDAssembool. Gets a bool value indicating whether the current Type is nested and visible only to classes that belong to both its own family and its own assembly.
[read-only]
IsNestedFamilybool. Gets a bool value indicating whether the current Type is nested and visible only within its own family.
[read-only]
IsNestedFamORAssembool. Gets a bool value indicating whether the current Type is nested and visible only to classes that belong to either its own family or to its own assembly.
[read-only]
IsNestedPrivatebool. Gets a bool value indicating whether the current Type is nested and declared private.
[read-only]
IsNestedPublicbool. Gets a bool value indicating whether the current Type is a public nested class.
[read-only]
IsNotPublicbool. Gets a bool value indicating whether the top-level Type is not declared public.
[read-only]
IsPointerbool. Gets a bool value that indicates whether the current Type represents a pointer.
[read-only]
IsPrimitivebool. Gets a bool value indicating whether the current Type is one of the primitive types.
[read-only]
IsPublicbool. Gets a bool value indicating whether the top-level Type is declared public.
[read-only]
IsSealedbool. Gets a bool value indicating whether the current Type is declared sealed.
[read-only]
IsSerializablebool. Specifies if it is possible to serialize the Type.
[read-only]
IsSpecialNamebool. Gets a bool value indicating whether the current Type has a name that requires special handling.
[read-only]
IsUnicodeClassbool. Indicates whether the type attribute System.Reflection.TypeAttributes.UnicodeClass is selected for the current type.
[read-only]
IsValueTypebool. Gets a bool value that indicates whether the current Type represents a value type.
[read-only]
IsVisiblebool. Documentation for this section has not yet been entered.
[read-only]
override
MemberTypeSystem.Reflection.MemberTypes. Documentation for this section has not yet been entered.
[read-only]
abstract
ModuleSystem.Reflection.Module. Gets the module in which the current Type is defined.
[read-only]
abstract
Namespacestring. Gets the namespace of the Type.
[read-only]
override
ReflectedTypeType. Gets the type that was used to obtain the current instance.
[read-only]
StructLayoutAttributeSystem.Runtime.InteropServices.StructLayoutAttribute. Documentation for this section has not yet been entered.
[read-only]
TypeHandleRuntimeTypeHandle. Gets the handle for the current Type.
[read-only]
TypeInitializerSystem.Reflection.ConstructorInfo. Gets the initializer for the type represented by the current instance.
[read-only]
abstract
UnderlyingSystemTypeType. Returns the system-supplied type that represents the current type.

Public Methods

override
Equals(object) : bool
Documentation for this section has not yet been entered.
Equals(Type) : bool
Determines if the underlying system type of the current Type is the same as the underlying system type of the specified Type.
FindInterfaces(System.Reflection.TypeFilter, object) : Type[]
Documentation for this section has not yet been entered.
FindMembers(System.Reflection.MemberTypes, System.Reflection.BindingFlags, System.Reflection.MemberFilter, object) : System.Reflection.MemberInfo[]
Documentation for this section has not yet been entered.
GetArrayRank() : int
Returns the number of dimensions in the current Type.
GetConstructor(Type[]) : System.Reflection.ConstructorInfo
Returns a public instance constructor defined in the type represented by the current instance. The parameters of the constructor match the specified argument types.
GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.ConstructorInfo
Returns a constructor defined in the type represented by the current instance. The parameters of the constructor match the specified argument types and modifiers, under the specified binding constraints.
GetConstructor(System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.ConstructorInfo
Documentation for this section has not yet been entered.
GetConstructors() : System.Reflection.ConstructorInfo[]
Returns an array of the public constructors defined in the type represented by the current instance.
abstract
GetConstructors(System.Reflection.BindingFlags) : System.Reflection.ConstructorInfo[]
Returns an array of constructors defined in the type represented by the current instance, under the specified binding constraints.
GetDefaultMembers() : System.Reflection.MemberInfo[]
Returns an array of System.Reflection.MemberInfo objects that reflect the default members defined in the type represented by the current instance.
abstract
GetElementType() : Type
Returns the element type of the current Type .
GetEvent(string) : System.Reflection.EventInfo
Returns a System.Reflection.EventInfo object reflecting the public event that has the specified name and is defined in the type represented by the current instance.
abstract
GetEvent(string, System.Reflection.BindingFlags) : System.Reflection.EventInfo
Returns a System.Reflection.EventInfo object reflecting the event that has the specified name, is defined in the type represented by the current instance, and matches the specified binding constraints.
GetEvents() : System.Reflection.EventInfo[]
Returns an array of System.Reflection.EventInfo objects that reflect the public events defined in the type represented by the current instance.
abstract
GetEvents(System.Reflection.BindingFlags) : System.Reflection.EventInfo[]
Returns an array of System.Reflection.EventInfo objects that reflect the events that are defined in the type represented by the current instance and match the specified binding constraints.
GetField(string) : System.Reflection.FieldInfo
Returns a System.Reflection.FieldInfo object reflecting the field that has the specified name and is defined in the type represented by the current instance.
abstract
GetField(string, System.Reflection.BindingFlags) : System.Reflection.FieldInfo
Returns a System.Reflection.FieldInfo object reflecting the field that has the specified name, is defined in the type represented by the current instance, and matches the specified binding constraints.
GetFields() : System.Reflection.FieldInfo[]
Returns an array of System.Reflection.FieldInfo objects that reflect the public fields defined in the type represented by the current instance.
abstract
GetFields(System.Reflection.BindingFlags) : System.Reflection.FieldInfo[]
Returns an array of System.Reflection.FieldInfo objects that reflect the fields that are defined in the type represented by the current instance and match the specified binding constraints.
GetGenericArguments() : Type[]
Returns an array of Type objects that represent the type arguments of a generic type or the type parameters of a generic type definition.
GetGenericParameterConstraints() : Type[]
Returns an array of Type objects that represent the type constraints on the current generic type parameter.
GetGenericTypeDefinition() : Type
Returns a Type object that represents a generic type from which the current type can be constructed.
override
GetHashCode() : int
Generates a hash code for the current instance.
GetInterface(string) : Type
Searches for the interface with the specified name.
abstract
GetInterface(string, bool) : Type
Returns the specified interface, specifying whether to do a case-sensitive search.
GetInterfaceMap(Type) : System.Reflection.InterfaceMapping
Documentation for this section has not yet been entered.
abstract
GetInterfaces() : Type[]
Returns all interfaces implemented or inherited by the type represented by the current instance.
GetMember(string) : System.Reflection.MemberInfo[]
Returns an array of System.Reflection.MemberInfo objects that reflect the public members that have the specified name and are defined in the type represented by the current instance.
GetMember(string, System.Reflection.BindingFlags) : System.Reflection.MemberInfo[]
Returns an array of System.Reflection.MemberInfo objects that reflect the members defined in the type represented by the current instance that have the specified name and match the specified binding constraints.
GetMember(string, System.Reflection.MemberTypes, System.Reflection.BindingFlags) : System.Reflection.MemberInfo[]
Documentation for this section has not yet been entered.
GetMembers() : System.Reflection.MemberInfo[]
Returns an array of System.Reflection.MemberInfo objects that reflect the public members defined in the type represented by the current instance.
abstract
GetMembers(System.Reflection.BindingFlags) : System.Reflection.MemberInfo[]
Returns an array of System.Reflection.MemberInfo objects that reflect the members that are defined in the type represented by the current instance and match the specified binding constraints.
GetMethod(string) : System.Reflection.MethodInfo
Returns a System.Reflection.MethodInfo object that reflects the public method that has the specified name and is defined in the type represented by the current instance.
GetMethod(string, System.Reflection.BindingFlags) : System.Reflection.MethodInfo
Returns a System.Reflection.MethodInfo object that reflects the method that has the specified name and is defined in the type represented by the current instance.
GetMethod(string, Type[]) : System.Reflection.MethodInfo
Returns a System.Reflection.MethodInfo object that reflects the public method defined in the type represented by the current instance that has the specified name and parameter information.
GetMethod(string, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.MethodInfo
Returns a System.Reflection.MethodInfo object that reflects the public method that has the specified name and is defined in the type represented by the current instance.
GetMethod(string, System.Reflection.BindingFlags, System.Reflection.Binder, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.MethodInfo
Returns a System.Reflection.MethodInfo object that reflects the method that matches the specified criteria and is defined in the type represented by the current instance.
GetMethod(string, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.MethodInfo
Documentation for this section has not yet been entered.
GetMethods() : System.Reflection.MethodInfo[]
Returns the public methods defined in the type represented by the current instance.
abstract
GetMethods(System.Reflection.BindingFlags) : System.Reflection.MethodInfo[]
Returns an array of System.Reflection.MethodInfo objects that reflect the methods defined in the type represented by the current instance that match the specified binding constraints.
GetNestedType(string) : Type
Returns the public nested type defined in the type represented by the current instance
abstract
GetNestedType(string, System.Reflection.BindingFlags) : Type
Returns a nested types defined in the type represented by the current instance that match the specified binding constraints.
GetNestedTypes() : Type[]
Returns all the public types nested within the current Type.
abstract
GetNestedTypes(System.Reflection.BindingFlags) : Type[]
Returns an array containing the nested types defined in the type represented by the current instance that match the specified binding constraints.
GetProperties() : System.Reflection.PropertyInfo[]
Returns an array of System.Reflection.PropertyInfo objects that reflect the public properties defined in the type represented by the current instance.
abstract
GetProperties(System.Reflection.BindingFlags) : System.Reflection.PropertyInfo[]
Returns an array of System.Reflection.PropertyInfo objects that reflect the properties defined for the type represented by the current instance that match the specified binding constraints.
GetProperty(string) : System.Reflection.PropertyInfo
Returns a System.Reflection.PropertyInfo object that reflects the public property defined in the type represented by the current instance that has the specified name.
GetProperty(string, System.Reflection.BindingFlags) : System.Reflection.PropertyInfo
Returns a System.Reflection.PropertyInfo object that reflects the property defined in the type represented by the current instance that matches the specified search criteria.
GetProperty(string, Type) : System.Reflection.PropertyInfo
Returns a System.Reflection.PropertyInfo object that reflects the public property defined in the type represented by the current instance that matches the specified search criteria.
GetProperty(string, Type[]) : System.Reflection.PropertyInfo
Returns a System.Reflection.PropertyInfo object that reflects the public property defined in the type represented by the current instance that matches the specified search criteria.
GetProperty(string, Type, Type[]) : System.Reflection.PropertyInfo
Returns a System.Reflection.PropertyInfo object that reflects the public property defined in the type represented by the current instance that matches the specified search criteria.
GetProperty(string, Type, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.PropertyInfo
Documentation for this section has not yet been entered.
GetProperty(string, System.Reflection.BindingFlags, System.Reflection.Binder, Type, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.PropertyInfo
Returns a System.Reflection.PropertyInfo object that reflects the property defined in the type represented by the current instance that matches the specified search criteria .
GetType() : Type
Documentation for this section has not yet been entered.
static
GetType(string) : Type
Returns the Type with the specified name.
static
GetType(string, bool) : Type
Returns the Type with the specified name, optionally throwing an exception if an error occurs while loading the Type .
static
GetType(string, bool, bool) : Type
Returns the Type with the specified name, optionally performing a case-insensitive search and optionally throwing an exception if an error occurs while loading the Type.
static
GetTypeArray(object[]) : Type[]
Returns the types of the objects in the specified array.
static
GetTypeCode(Type) : TypeCode
Documentation for this section has not yet been entered.
static
GetTypeFromCLSID(Guid) : Type
Documentation for this section has not yet been entered.
static
GetTypeFromCLSID(Guid, bool) : Type
Documentation for this section has not yet been entered.
static
GetTypeFromCLSID(Guid, string) : Type
Documentation for this section has not yet been entered.
static
GetTypeFromCLSID(Guid, string, bool) : Type
Documentation for this section has not yet been entered.
static
GetTypeFromHandle(RuntimeTypeHandle) : Type
Gets the Type referenced by the specified type handle.
static
GetTypeFromProgID(string) : Type
Documentation for this section has not yet been entered.
static
GetTypeFromProgID(string, bool) : Type
Documentation for this section has not yet been entered.
static
GetTypeFromProgID(string, string) : Type
Documentation for this section has not yet been entered.
static
GetTypeFromProgID(string, string, bool) : Type
Documentation for this section has not yet been entered.
static
GetTypeHandle(object) : RuntimeTypeHandle
Returns the handle for the Type of the specified object.
InvokeMember(string, System.Reflection.BindingFlags, System.Reflection.Binder, object, object[]) : object
Invokes the specified member, using the specified binding constraints and matching the specified argument list.
InvokeMember(string, System.Reflection.BindingFlags, System.Reflection.Binder, object, object[], System.Globalization.CultureInfo) : object
Invokes the specified member, using the specified binding constraints and matching the specified argument list and culture.
abstract
InvokeMember(string, System.Reflection.BindingFlags, System.Reflection.Binder, object, object[], System.Reflection.ParameterModifier[], System.Globalization.CultureInfo, string[]) : object
Invokes or accesses a member defined on the type represented by the current instance that matches the specified binding criteria.
IsAssignableFrom(Type) : bool
Determines whether an instance of the current Type can be assigned from an instance of the specified Type .
IsInstanceOfType(object) : bool
Determines whether the specified object is an instance of the current Type.
IsSubclassOf(Type) : bool
Determines whether the current Type derives from the specified Type .
MakeArrayType() : Type
Returns a Type object representing a one-dimensional array type whose element type is the current type, with a lower bound of zero.
MakeArrayType(int) : Type
Returns a Type object representing an array of the current type, with the specified number of dimensions.
MakeByRefType() : Type
Returns a Type object that represents the current type when passed as a byref parameter.
MakeGenericType(params Type[]) : Type

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.

The current type shall be a generic type definition.

MakePointerType() : Type
Returns a Type object that represents the type of an unmanaged pointer to the current type.
static
ReflectionOnlyGetType(string, bool, bool) : Type
Documentation for this section has not yet been entered.
override
ToString() : string
Returns a string representation of the current Type.

Protected Methods

abstract
GetAttributeFlagsImpl() : System.Reflection.TypeAttributes
When overridden in a derived type implements the Type.Attributes property and returns the attributes specified for the type represented by the current instance.
abstract
GetConstructorImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.ConstructorInfo
Documentation for this section has not yet been entered.
abstract
GetMethodImpl(string, System.Reflection.BindingFlags, System.Reflection.Binder, System.Reflection.CallingConventions, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.MethodInfo
Documentation for this section has not yet been entered.
abstract
GetPropertyImpl(string, System.Reflection.BindingFlags, System.Reflection.Binder, Type, Type[], System.Reflection.ParameterModifier[]) : System.Reflection.PropertyInfo
When overridden in a derived class implements the Type.GetProperty(string, System.Reflection.BindingFlags, System.Reflection.Binder, Type, Type[], System.Reflection.ParameterModifier[]) method and returns a System.Reflection.PropertyInfo object that reflects the property defined in the type represented by the current instance that matches the specified search criteria.
abstract
HasElementTypeImpl() : bool
When overridden in a derived class, implements the Type.HasElementType property and determines whether the current Type encompasses or refers to another type; that is, whether the current Type is an array, a pointer, or is passed by reference.
abstract
IsArrayImpl() : bool
When overridden in a derived class implements the Type.IsArray property returning a bool value that indicates whether the type represented by the current instance is an array.
abstract
IsByRefImpl() : bool
When overridden in a derived class, implements the Type.IsByRef property and determines whether the Type is passed by reference.
abstract
IsCOMObjectImpl() : bool
Reserved.
IsContextfulImpl() : bool
Documentation for this section has not yet been entered.
IsMarshalByRefImpl() : bool
Documentation for this section has not yet been entered.
abstract
IsPointerImpl() : bool
When overridden in a derived class, implements the Type.IsPointer property and determines whether the Type is a pointer.
abstract
IsPrimitiveImpl() : bool
When overridden in a derived class, implements the Type.IsPrimitive property and determines whether the Type is one of the primitive types.
IsValueTypeImpl() : bool
Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

System.Runtime.InteropServices._Type.GetIDsOfNamesDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._Type.GetTypeInfoDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._Type.GetTypeInfoCountDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._Type.InvokeDocumentation for this section has not yet been entered.