Show / Hide Table of Contents

    Class AccessRules

    A base class for rules that define which members may refer to other members.

    Inheritance
    System.Object
    AccessRules
    StandardAccessRules
    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 abstract class AccessRules

    Methods

    | Improve this Doc View Source

    CanAccess(IType, IType)

    Tells if one type has access to another.

    Declaration
    public abstract bool CanAccess(IType accessor, IType accessed)
    Parameters
    Type Name Description
    IType accessor

    A type that tries to access accessed.

    IType accessed

    Any type.

    Returns
    Type Description
    System.Boolean

    true if accessor can access accessed; otherwise, false.

    | Improve this Doc View Source

    CanAccess(IType, ITypeMember)

    Tells if a type has access to a member.

    Declaration
    public abstract bool CanAccess(IType accessor, ITypeMember accessed)
    Parameters
    Type Name Description
    IType accessor

    A type that tries to access accessed.

    ITypeMember accessed

    Any member.

    Returns
    Type Description
    System.Boolean

    true if accessor can access accessed; otherwise, false.

    | Improve this Doc View Source

    CanAccess(ITypeMember, IType)

    Tells if a member has access to a type.

    Declaration
    public bool CanAccess(ITypeMember accessor, IType accessed)
    Parameters
    Type Name Description
    ITypeMember accessor

    A member that tries to access accessed.

    IType accessed

    Any type.

    Returns
    Type Description
    System.Boolean

    true if accessor can access accessed; otherwise, false.

    | Improve this Doc View Source

    CanAccess(ITypeMember, ITypeMember)

    Tells if one member has access to another.

    Declaration
    public bool CanAccess(ITypeMember accessor, ITypeMember accessed)
    Parameters
    Type Name Description
    ITypeMember accessor

    A member that tries to access accessed.

    ITypeMember accessed

    Any member.

    Returns
    Type Description
    System.Boolean

    true if accessor can access accessed; otherwise, false.

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