class Type

in global :: System

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.


public string AssemblyQualifiedName { get; }

Gets the assembly-qualified name of the type, which includes the name of the assembly from which this object was loaded.

  • Returns The assembly-qualified name of the , which includes the name of the assembly from which the was loaded, or if the current instance represents a generic type parameter.

public Type BaseType { get; }

Gets the type from which the current directly inherits.

  • Returns The from which the current directly inherits, or if the current represents the class or an interface.

public bool ContainsGenericParameters { get; }

Gets a value indicating whether the current object has type parameters that have not been replaced by specific types.

  • Returns if the object is itself a generic type parameter or has type parameters for which specific types have not been supplied; otherwise, .

public Type DeclaringType { get; }

Gets the type that declares the current nested type or generic type parameter.

  • Returns A object representing the enclosing type, if the current type is a nested type; or the generic type definition, if the current type is a type parameter of a generic type; or the type that declares the generic method, if the current type is a type parameter of a generic method; otherwise, .

public static char Delimiter

Separates names in the namespace of the . This field is read-only.

public static Type[] EmptyTypes

Represents an empty array of type . This field is read-only.

public string FullName { get; }

Gets the fully qualified name of the type, including its namespace but not its assembly.

  • Returns The fully qualified name of the type, including its namespace but not its assembly; or if the current instance represents a generic type parameter, an array type, pointer type, or type based on a type parameter, or a generic type that is not a generic type definition but contains unresolved type parameters.

public int GenericParameterPosition { get; }

Gets the position of the type parameter in the type parameter list of the generic type or method that declared the parameter, when the object represents a type parameter of a generic type or a generic method.

  • Returns The position of a type parameter in the type parameter list of the generic type or method that defines the parameter. Position numbers begin at 0.

public Type[] GenericTypeArguments { get; }

Gets an array of the generic type arguments for this type.

  • Returns An array of the generic type arguments for this type.

public Guid GUID { get; }

Gets the GUID associated with the .

  • Returns The GUID associated with the .

public bool HasElementType { get; }

Gets a value indicating whether the current encompasses or refers to another type; that is, whether the current is an array, a pointer, or is passed by reference.

  • Returns if the is an array, a pointer, or is passed by reference; otherwise, .

public bool IsAbstract { get; }

Gets a value indicating whether the is abstract and must be overridden.

  • Returns if the is abstract; otherwise, .

public bool IsAnsiClass { get; }

Gets a value indicating whether the string format attribute is selected for the .

  • Returns if the string format attribute is selected for the ; otherwise, .

public bool IsArray { get; }

Gets a value that indicates whether the type is an array.

  • Returns if the current type is an array; otherwise, .

public bool IsAutoClass { get; }

Gets a value indicating whether the string format attribute is selected for the .

  • Returns if the string format attribute is selected for the ; otherwise, .

public bool IsAutoLayout { get; }

Gets a value indicating whether the fields of the current type are laid out automatically by the common language runtime.

  • Returns if the property of the current type includes ; otherwise, .

public bool IsByRef { get; }

Gets a value indicating whether the is passed by reference.

  • Returns if the is passed by reference; otherwise, .

public bool IsByRefLike { get; }

No summary.

public bool IsClass { get; }

Gets a value indicating whether the is a class or a delegate; that is, not a value type or interface.

  • Returns if the is a class; otherwise, .

public bool IsCOMObject { get; }

Gets a value indicating whether the is a COM object.

  • Returns if the is a COM object; otherwise, .

public bool IsConstructedGenericType { get; }

Gets a value that indicates whether this object represents a constructed generic type. You can create instances of a constructed generic type.

  • Returns if this object represents a constructed generic type; otherwise, .

public bool IsContextful { get; }

Gets a value indicating whether the can be hosted in a context.

  • Returns if the can be hosted in a context; otherwise, .

public bool IsEnum { get; }

Gets a value indicating whether the current represents an enumeration.

  • Returns if the current represents an enumeration; otherwise, .

public bool IsExplicitLayout { get; }

Gets a value indicating whether the fields of the current type are laid out at explicitly specified offsets.

  • Returns if the property of the current type includes ; otherwise, .

public bool IsGenericMethodParameter { get; }

No summary.

public bool IsGenericParameter { get; }

Gets a value indicating whether the current represents a type parameter in the definition of a generic type or method.

  • Returns if the object represents a type parameter of a generic type definition or generic method definition; otherwise, .

public bool IsGenericType { get; }

Gets a value indicating whether the current type is a generic type.

  • Returns if the current type is a generic type; otherwise, .

public bool IsGenericTypeDefinition { get; }

Gets a value indicating whether the current represents a generic type definition, from which other generic types can be constructed.

  • Returns if the object represents a generic type definition; otherwise, .

public bool IsGenericTypeParameter { get; }

No summary.

public bool IsImport { get; }

Gets a value indicating whether the has a attribute applied, indicating that it was imported from a COM type library.

  • Returns if the has a ; otherwise, .

public bool IsInterface { get; }

Gets a value indicating whether the is an interface; that is, not a class or a value type.

  • Returns if the is an interface; otherwise, .

public bool IsLayoutSequential { get; }

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.

  • Returns if the property of the current type includes ; otherwise, .

public bool IsMarshalByRef { get; }

Gets a value indicating whether the is marshaled by reference.

  • Returns if the is marshaled by reference; otherwise, .

public bool IsNested { get; }

Gets a value indicating whether the current object represents a type whose definition is nested inside the definition of another type.

  • Returns if the is nested inside another type; otherwise, .

public bool IsNestedAssembly { get; }

Gets a value indicating whether the is nested and visible only within its own assembly.

  • Returns if the is nested and visible only within its own assembly; otherwise, .

public bool IsNestedFamANDAssem { get; }

Gets a value indicating whether the is nested and visible only to classes that belong to both its own family and its own assembly.

  • Returns if the is nested and visible only to classes that belong to both its own family and its own assembly; otherwise, .

public bool IsNestedFamily { get; }

Gets a value indicating whether the is nested and visible only within its own family.

  • Returns if the is nested and visible only within its own family; otherwise, .

public bool IsNestedFamORAssem { get; }

Gets a value indicating whether the is nested and visible only to classes that belong to either its own family or to its own assembly.

  • Returns if the is nested and visible only to classes that belong to its own family or to its own assembly; otherwise, .

public bool IsNestedPrivate { get; }

Gets a value indicating whether the is nested and declared private.

  • Returns if the is nested and declared private; otherwise, .

public bool IsNestedPublic { get; }

Gets a value indicating whether a class is nested and declared public.

  • Returns if the class is nested and declared public; otherwise, .

public bool IsNotPublic { get; }

Gets a value indicating whether the is not declared public.

  • Returns if the is not declared public and is not a nested type; otherwise, .

public bool IsPointer { get; }

Gets a value indicating whether the is a pointer.

  • Returns if the is a pointer; otherwise, .

public bool IsPrimitive { get; }

Gets a value indicating whether the is one of the primitive types.

  • Returns if the is one of the primitive types; otherwise, .

public bool IsPublic { get; }

Gets a value indicating whether the is declared public.

  • Returns if the is declared public and is not a nested type; otherwise, .

public bool IsSealed { get; }

Gets a value indicating whether the is declared sealed.

  • Returns if the is declared sealed; otherwise, .

public bool IsSecurityCritical { get; }

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.

  • Returns if the current type is security-critical or security-safe-critical at the current trust level; if it is transparent.

public bool IsSecuritySafeCritical { get; }

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.

  • Returns if the current type is security-safe-critical at the current trust level; if it is security-critical or transparent.

public bool IsSecurityTransparent { get; }

Gets a value that indicates whether the current type is transparent at the current trust level, and therefore cannot perform critical operations.

  • Returns if the type is security-transparent at the current trust level; otherwise, .

public bool IsSerializable { get; }

Gets a value indicating whether the is serializable.

  • Returns if the is serializable; otherwise, .

public bool IsSignatureType { get; }

No summary.

public bool IsSpecialName { get; }

Gets a value indicating whether the type has a name that requires special handling.

  • Returns if the type has a name that requires special handling; otherwise, .

public bool IsSZArray { get; }

No summary.

public bool IsTypeDefinition { get; }

No summary.

public bool IsUnicodeClass { get; }

Gets a value indicating whether the string format attribute is selected for the .

  • Returns if the string format attribute is selected for the ; otherwise, .

public bool IsValueType { get; }

Gets a value indicating whether the is a value type.

  • Returns if the is a value type; otherwise, .

public bool IsVariableBoundArray { get; }

No summary.

public bool IsVisible { get; }

Gets a value indicating whether the can be accessed by code outside the assembly.

  • Returns if the current is a public type or a public nested type such that all the enclosing types are public; otherwise, .

public static object Missing

Represents a missing value in the information. This field is read-only.

public string Namespace { get; }

Gets the namespace of the .

  • Returns The namespace of the ; if the current instance has no namespace or represents a generic parameter.

public Type ReflectedType { get; }

Gets the class object that was used to obtain this member.

  • Returns The object through which this object was obtained.

public RuntimeTypeHandle TypeHandle { get; }

Gets the handle for the current .

  • Returns The handle for the current .

public Type UnderlyingSystemType { get; }

Indicates the type provided by the common language runtime that represents this type.

  • Returns The underlying system type for the .

public bool IsUnmanagedFunctionPointer { get; }

😔 No documentation found.

public bool IsFunctionPointer { get; }

😔 No documentation found.

public string Name { get; }

😔 No documentation found.

public IEnumerable<CustomAttributeData> CustomAttributes { get; }

😔 No documentation found.

public bool IsCollectible { get; }

😔 No documentation found.

public int MetadataToken { get; }

😔 No documentation found.