ITypeDefinition Interface

Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions.

Namespace: JustDecompile.API.Core
Assembly: JustDecompile.API (in JustDecompile.API.dll) Version: 1.0.0.3 (1.0.0.0)

Syntax

C#
public interface ITypeDefinition : IMemberDefinition, 
    ITypeReference, IGenericParameterProvider, IMetadataTokenProvider

TheITypeDefinitiontype exposes the following members.

Properties

Name Description
Public property Attributes Gets a bitmask indicating the attributes associated with theITypeDefinition.
Public property BaseType Gets the base type of this type.
Public property ClassSize
Public property CustomAttributes Gets the custom attributes of the type.
Public property DeclaringType Gets the type in which this type is declared.
Public property Events Gets the events that are declared by the type.
Public property Fields Gets the fields of the currentITypeDefinition.
Public property FullName Gets the fully qualified name of the type. (Inherited from ITypeReference.)
Public property GenericParameters Gets the generic parameters of the member. (Inherited from IGenericParameterProvider.)
Public property GenericParameterType Gets a value indicating the type of the generic parameter provider. (Inherited from IGenericParameterProvider.)
Public property HasCustomAttributes Gets a value indicating whether the type has custom attributes.
Public property HasEvents Gets a value indicating whether the type contains any events.
Public property HasFields Gets a value indicating whether the type contains any fields.
Public property HasGenericParameters Gets a value indicating whether the member has generic parameters. (Inherited from IGenericParameterProvider.)
Public property HasInterfaces Gets a value indicating whether the type inherits any interfaces.
Public property HasLayoutInfo Gets a value indicating whether the type contains information about the layout of its fields.
Public property HasMethods Gets a value indicating whether the type contains any methods.
Public property HasNestedTypes Gets a value indicating whether the type contains nested types.
Public property HasProperties Gets a value indicating whether the type contains any properties.
Public property HasSecurity
Public property HasSecurityDeclarations Gets a value indicating whether the type has security declarations.
Public property Interfaces Gets all the interfaces implemented or inherited by the current type.
Public property IsAbstract Gets a value indicating whether theITypeDefinitionis abstract and must be inherited.
Public property IsAnsiClass Gets a value indicating whether the string format attribute AnsiClass is selected for theITypeDefinition.
Public property IsArray Gets a value indicating whether the type is an array. (Inherited from ITypeReference.)
Public property IsAutoClass Gets a value indicating whether the string format attribute AutoClass is selected for theITypeDefinition.
Public property IsAutoLayout Gets a value indicating whether the class layout attribute AutoLayout is selected for theITypeDefinition.
Public property IsBeforeFieldInit
Public property IsByReference (Inherited from ITypeReference .)
Public property IsClass Gets a value indicating whether theITypeDefinitionis a class; that is, not a value type or interface.
Public property IsDefinition Gets a value indicating whether this object is a definition of a member. (Inherited from IGenericParameterProvider.)
Public property IsEnum Gets a value indicating whether the currentITypeDefinitionrepresents an enumeration.
Public property IsExplicitLayout Gets a value indicating whether the class layout attribute ExplicitLayout is selected for theITypeDefinition.
Public property IsFunctionPointer Gets a value indicating whether the type is a function pointer type. (Inherited from ITypeReference.)
Public property IsGenericInstance Gets a value indicating whether the type is an instance of a generic type. (Inherited from ITypeReference.)
Public property IsGenericParameter Gets a value indicating whether the type represents a type parameter in the definition of a generic type or method. (Inherited from ITypeReference.)
Public property IsImport Gets a value indicating whether theITypeDefinitionhas a TypeAttributes attribute applied, indicating that it was imported from a COM type library.
Public property IsInterface Gets a value indicating whether theITypeDefinitionis an interface; that is, not a class or a value type.
Public property IsNested Gets a value indicating whether type is nested in another type. (Inherited from ITypeReference.)
Public property IsNestedAssembly Gets a value indicating whether theITypeDefinitionis nested and visible only within its own assembly.
Public property IsNestedFamily Gets a value indicating whether theITypeDefinitionis nested and visible to the descendants of its declaring type.
Public property IsNestedFamilyAndAssembly Gets a value indicating whether theITypeDefinitionis nested and visible to the descendants of its declaring type residing in the same assembly.
Public property IsNestedFamilyOrAssembly Gets a value indicating whether theITypeDefinitionis nested and visible to the descendants of its declaring type, or to any type residing in the same assembly.
Public property IsNestedPrivate Gets a value indicating whether theITypeDefinitionis nested and visible only to its declaring type.
Public property IsNestedPublic Gets a value indicating whether theITypeDefinitionis nested and declared public.
Public property IsNotPublic Gets a value indicating whether theITypeDefinitionis not declared public.
Public property IsOptionalModifier (Inherited from ITypeReference .)
Public property IsPinned (Inherited from ITypeReference .)
Public property IsPointer Gets a value indicating whether the type is a pointer type. (Inherited from ITypeReference.)
Public property IsPrimitive Gets a value indicating whether the type is one of the primitive types. (Inherited from ITypeReference.)
Public property IsPublic Gets a value indicating whether theITypeDefinitionis declared public.
Public property IsRequiredModifier (Inherited from ITypeReference .)
Public property IsRuntimeSpecialName Gets a value indicating whether the name of the member is special for the runtime. (Inherited from IMemberDefinition.)
Public property IsSealed Gets a value indicating whether theITypeDefinitionis declared sealed.
Public property IsSentinel (Inherited from ITypeReference .)
Public property IsSequentialLayout Gets a value indicating whether the class layout attribute SequentialLayout is selected for theITypeDefinition.
Public property IsSerializable Gets a value indicating whether theITypeDefinitionis serializable.
Public property IsSpecialName Gets a value indicating whether the member has a special name. (Inherited from IMemberDefinition.)
Public property IsUnicodeClass Gets a value indicating whether the string format attribute UnicodeClass is selected for theITypeDefinition.
Public property IsValueType Implements the IsValueType property and
        determines whether the <a href="t_justdecompile_api_core_itypereference">ITypeReference</a> is a value type; that is,
        not a class or an interface. (Inherited from <a href="t_justdecompile_api_core_itypereference">ITypeReference</a>.) |

Public property |MetadataToken |Gets the IMetadataToken of the IMetadataTokenProvider. (Inherited from IMetadataTokenProvider.) | Public property |MetadataType |Gets the metadata type of the type. (Inherited from ITypeReference.) | Public property |Methods |Gets the methods defined for the currentITypeDefinition. | Public property |Module |Gets the module in which the current ITypeReference is defined. (Inherited from ITypeReference.) | Public property |Name |Gets the name of the current member. (Inherited from ITypeReference.) | Public property |Namespace |Gets the namespace of the ITypeReference. (Inherited from ITypeReference.) | Public property |NestedTypes |Gets the types nested in the currentITypeDefinition. | Public property |PackingSize | | Public property |Properties |Gets the properties that are declared by the type. | Public property |Scope |Gets the scope of the type. (Inherited from ITypeReference.) | Public property |SecurityDeclarations |Gets the security declarations of the type. |

Methods

Name Description
Public method Resolve Resolves the definition of the type. (Inherited from ITypeReference.)

See Also

JustDecompile.API.Core Namespace

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy