Mono Class Library: Overview

System.Type: Method Members

The methods of System.Type are listed below. For a list of all members, see the Type Members list.

See Also: Inherited members from System.Reflection.MemberInfo

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.