Show / Hide Table of Contents

    Class ClrModifierType

    An IL type that modifies a type by slapping on a required or optional modifier.

    Inheritance
    System.Object
    ContainerType
    ClrModifierType
    Implements
    IType
    IGenericMember
    IMember
    Inherited Members
    ContainerType.Initialize(UnqualifiedName, QualifiedName, AttributeMap)
    ContainerType.ElementType
    ContainerType.Parent
    ContainerType.BaseTypes
    ContainerType.Fields
    ContainerType.Methods
    ContainerType.Properties
    ContainerType.GenericParameters
    ContainerType.NestedTypes
    ContainerType.Name
    ContainerType.FullName
    ContainerType.Attributes
    ContainerType.ToString()
    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 ClrModifierType : ContainerType, IType, IGenericMember, IMember

    Properties

    | Improve this Doc View Source

    IsRequired

    Tells if this type is a modreq type; if it is not, then it must be a modopt type.

    Declaration
    public bool IsRequired { get; }
    Property Value
    Type Description
    System.Boolean

    true if this type is a modreq type; false if this type is a modopt type.

    | Improve this Doc View Source

    ModifierType

    Gets the modifier type that is applied to the element type.

    Declaration
    public IType ModifierType { get; }
    Property Value
    Type Description
    IType

    The modifier type.

    Methods

    | Improve this Doc View Source

    Create(IType, IType, Boolean)

    Creates a modreq or modopt type.

    Declaration
    public static ClrModifierType Create(IType elementType, IType modifierType, bool isRequired)
    Parameters
    Type Name Description
    IType elementType

    An element type to associate with a modifier type.

    IType modifierType

    A modifier type to slap onto elementType.

    System.Boolean isRequired

    A Boolean flag that is true if a modreq type is to be created and false otherwise.

    Returns
    Type Description
    ClrModifierType

    A modreq or modopt type.

    | Improve this Doc View Source

    CreateOptional(IType, IType)

    Creates a modopt type.

    Declaration
    public static ClrModifierType CreateOptional(IType elementType, IType modifierType)
    Parameters
    Type Name Description
    IType elementType

    An element type to associate with a modifier type.

    IType modifierType

    A modifier type to slap onto elementType.

    Returns
    Type Description
    ClrModifierType

    A modopt type.

    | Improve this Doc View Source

    CreateRequired(IType, IType)

    Creates a modreq type.

    Declaration
    public static ClrModifierType CreateRequired(IType elementType, IType modifierType)
    Parameters
    Type Name Description
    IType elementType

    An element type to associate with a modifier type.

    IType modifierType

    A modifier type to slap onto elementType.

    Returns
    Type Description
    ClrModifierType

    A modreq type.

    | Improve this Doc View Source

    WithElementType(IType)

    Creates a container type that is identical to this one except for its element type, which is set to a given type.

    Declaration
    public override ContainerType WithElementType(IType newElementType)
    Parameters
    Type Name Description
    IType newElementType

    The element type of the new container type.

    Returns
    Type Description
    ContainerType

    Another container type.

    Overrides
    ContainerType.WithElementType(IType)

    Implements

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