Show / Hide Table of Contents

    Class AccessModifierAttribute

    A collection of constants and methods that relate to access modifier attributes.

    Inheritance
    System.Object
    AccessModifierAttribute
    Inherited Members
    System.Object.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.TypeSystem
    Assembly: Flame.dll
    Syntax
    public static class AccessModifierAttribute

    Fields

    | Improve this Doc View Source

    AttributeName

    The attribute name for access modifier attributes.

    Declaration
    public const string AttributeName = "AccessModifier"
    Field Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Create(AccessModifier)

    Creates an access modifier attribute that encodes an access modifier.

    Declaration
    public static IntrinsicAttribute Create(AccessModifier modifier)
    Parameters
    Type Name Description
    AccessModifier modifier

    The access modifier to encode.

    Returns
    Type Description
    IntrinsicAttribute

    An access modifier attribute.

    | Improve this Doc View Source

    GetAccessModifier(IMember)

    Gets a member's access modifier. Members are internal by default.

    Declaration
    public static AccessModifier GetAccessModifier(this IMember member)
    Parameters
    Type Name Description
    IMember member

    The member to examine.

    Returns
    Type Description
    AccessModifier

    The member's access modifier if it has one; otherwise, internal.

    | Improve this Doc View Source

    Read(IntrinsicAttribute)

    Reads out an access modifier attribute as an access modifier.

    Declaration
    public static AccessModifier Read(IntrinsicAttribute attribute)
    Parameters
    Type Name Description
    IntrinsicAttribute attribute

    The access modifier attribute to read.

    Returns
    Type Description
    AccessModifier

    The access modifier described by the attribute.

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