Show / Hide Table of Contents

    Class ClrTypeDefinition

    A Flame type that wraps an IL type definition.

    Inheritance
    System.Object
    ClrTypeDefinition
    Implements
    IType
    IGenericMember
    IMember
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Flame.Clr
    Assembly: Flame.Clr.dll
    Syntax
    public sealed class ClrTypeDefinition : IType, IGenericMember, IMember

    Constructors

    | Improve this Doc View Source

    ClrTypeDefinition(TypeDefinition, ClrAssembly)

    Creates a Flame type that wraps a particular type definition.

    Declaration
    public ClrTypeDefinition(TypeDefinition definition, ClrAssembly assembly)
    Parameters
    Type Name Description
    Mono.Cecil.TypeDefinition definition

    The definition to wrap.

    ClrAssembly assembly

    The assembly that directly defines this type.

    | Improve this Doc View Source

    ClrTypeDefinition(TypeDefinition, ClrTypeDefinition)

    Creates a Flame type that wraps a particular nested type definition.

    Declaration
    public ClrTypeDefinition(TypeDefinition definition, ClrTypeDefinition parentType)
    Parameters
    Type Name Description
    Mono.Cecil.TypeDefinition definition

    The definition to wrap.

    ClrTypeDefinition parentType

    The type that directly defines this type.

    Properties

    | Improve this Doc View Source

    Assembly

    Gets the assembly that directly or indirectly defines this type.

    Declaration
    public ClrAssembly Assembly { get; }
    Property Value
    Type Description
    ClrAssembly

    The assembly.

    | Improve this Doc View Source

    Attributes

    Gets the member's attributes.

    Declaration
    public AttributeMap Attributes { get; }
    Property Value
    Type Description
    AttributeMap
    | Improve this Doc View Source

    BaseTypes

    Gets this type's base types. Base types can be either classes or interfaces.

    Declaration
    public IReadOnlyList<IType> BaseTypes { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IType>

    A read-only list of base types.

    | Improve this Doc View Source

    Definition

    Gets the type definition this type is based on.

    Declaration
    public TypeDefinition Definition { get; }
    Property Value
    Type Description
    Mono.Cecil.TypeDefinition

    The type definition.

    | Improve this Doc View Source

    Fields

    Gets this type's fields.

    Declaration
    public IReadOnlyList<IField> Fields { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IField>

    A read-only list of fields.

    | Improve this Doc View Source

    FullName

    Gets the member's full name.

    Declaration
    public QualifiedName FullName { get; }
    Property Value
    Type Description
    QualifiedName
    | Improve this Doc View Source

    GenericParameters

    Gets the list of generic parameters for this generic member.

    Declaration
    public IReadOnlyList<IGenericParameter> GenericParameters { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IGenericParameter>

    The generic parameters.

    | Improve this Doc View Source

    Methods

    Gets this type's methods.

    Declaration
    public IReadOnlyList<IMethod> Methods { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IMethod>

    A read-only list of methods.

    | Improve this Doc View Source

    Name

    Gets the member's unqualified name.

    Declaration
    public UnqualifiedName Name { get; }
    Property Value
    Type Description
    UnqualifiedName
    | Improve this Doc View Source

    NestedTypes

    Gets the nested types defined by this type.

    Declaration
    public IReadOnlyList<IType> NestedTypes { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IType>

    A read-only list of nested types.

    | Improve this Doc View Source

    Parent

    Gets the parent entity that defines and owns this type.

    Declaration
    public TypeParent Parent { get; }
    Property Value
    Type Description
    TypeParent

    The parent entity.

    | Improve this Doc View Source

    Properties

    Gets this type's properties.

    Declaration
    public IReadOnlyList<IProperty> Properties { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<IProperty>

    A read-only list of properties.

    Methods

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Implements

    IType
    IGenericMember
    IMember
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX