Class ExpressionMemberAllowListScanner
Expression visitor used to check uses of type members against a list of allowed members.
Inherited Members
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public class ExpressionMemberAllowListScanner : ExpressionMemberAllowListScannerBase
Constructors
ExpressionMemberAllowListScanner()
Creates a new allow list scanner for members. To complete instantiation, initialize the DeclaringTypes and Members properties, e.g. by using collection initializers.
Declaration
public ExpressionMemberAllowListScanner()
Properties
DeclaringTypes
Gets the declaring types whose members are allowed.
Declaration
public TypeList DeclaringTypes { get; }
Property Value
| Type | Description |
|---|---|
| TypeList |
Members
Gets the members which are allowed.
Declaration
public MemberList Members { get; }
Property Value
| Type | Description |
|---|---|
| MemberList |
Methods
Check(MemberInfo)
Checks whether the specified member is supported.
Declaration
protected override bool Check(MemberInfo member)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.MemberInfo | member | Member to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the member is supported; otherwise, false. |