Class AccessRules
A base class for rules that define which members may refer to other members.
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 SourceCanAccess(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 |
IType | accessed | Any type. |
Returns
Type | Description |
---|---|
System.Boolean |
|
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 |
ITypeMember | accessed | Any member. |
Returns
Type | Description |
---|---|
System.Boolean |
|
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 |
IType | accessed | Any type. |
Returns
Type | Description |
---|---|
System.Boolean |
|
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 |
ITypeMember | accessed | Any member. |
Returns
Type | Description |
---|---|
System.Boolean |
|