Show / Hide Table of Contents

Class ExpressionTypeAllowListScanner

Expression visitor used to check uses of types against a list of allowed types.

Inheritance
System.Object
ExpressionTypeAllowListScannerBase
ExpressionTypeAllowListScanner
Inherited Members
ExpressionTypeAllowListScannerBase.Visit(Expression)
ExpressionTypeAllowListScannerBase.ResolveExpression<T>(T, Type, Func<T, Expression>)
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.

Overrides
ExpressionTypeAllowListScannerBase.Check(Type)
In This Article
Back to top Generated by DocFX