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