Table of Contents

Class ParsedExpressionFactoryInternalConfiguration

Namespace
LfrlAnvil.Computable.Expressions.Internal
Assembly
LfrlAnvil.Computable.Expressions.dll

Represents an internal IParsedExpressionFactory configuration.

public sealed class ParsedExpressionFactoryInternalConfiguration : IParsedExpressionFactoryConfiguration
Inheritance
ParsedExpressionFactoryInternalConfiguration
Implements
Inherited Members

Properties

AllowNonIntegerNumbers

Specifies whether or not non-integer numbers are allowed.

public bool AllowNonIntegerNumbers { get; }

Property Value

bool

AllowNonPublicMemberAccess

Specifies whether or not non-public member access is allowed.

public bool AllowNonPublicMemberAccess { get; }

Property Value

bool

AllowScientificNotation

Specifies whether or not scientific notation for numbers is allowed.

public bool AllowScientificNotation { get; }

Property Value

bool

ConvertResultToOutputTypeAutomatically

Specifies whether or not the expression's result is automatically converted to the expected result type.

public bool ConvertResultToOutputTypeAutomatically { get; }

Property Value

bool

DecimalPoint

Specifies the decimal point.

public char DecimalPoint { get; }

Property Value

char

DiscardUnusedArguments

Specifies whether or not unused arguments should be discarded.

public bool DiscardUnusedArguments { get; }

Property Value

bool

IgnoreMemberNameCase

Specifies whether or not member names are case insensitive.

public bool IgnoreMemberNameCase { get; }

Property Value

bool

IntegerDigitSeparator

Specifies the integer digit separator.

public char IntegerDigitSeparator { get; }

Property Value

char

MemberBindingFlags

Represents used BindingFlags by this configuration used for locating members.

public BindingFlags MemberBindingFlags { get; }

Property Value

BindingFlags

NumberFormatProvider

Underlying IFormatProvider instance.

public IFormatProvider NumberFormatProvider { get; }

Property Value

IFormatProvider

NumberStyles

Represents used NumberStyles by this configuration.

public NumberStyles NumberStyles { get; }

Property Value

NumberStyles

PostponeStaticInlineDelegateCompilation

Specifies whether or not nested static delegate expressions should not be compiled immediately.

public bool PostponeStaticInlineDelegateCompilation { get; }

Property Value

bool

ScientificNotationExponents

Specifies characters that represent scientific notation exponents.

public string ScientificNotationExponents { get; }

Property Value

string

StringDelimiter

Specifies constant string delimiter symbol.

public char StringDelimiter { get; }

Property Value

char

Methods

FindTypeFieldsAndProperties(Type, string)

Attempts to find a range of all valid fields and properties for the provided type with a given name.

[Pure]
public MemberInfo[] FindTypeFieldsAndProperties(Type type, string name)

Parameters

type Type

Target type.

name string

Member name.

Returns

MemberInfo[]

MemberInfo range of all valid fields and properties.

FindTypeMethods(Type, string, Type[])

Attempts to find a range of all valid methods for the provided type with a given name and parameter types.

[Pure]
public MethodInfo[] FindTypeMethods(Type type, string name, Type[] parameterTypes)

Parameters

type Type

Target type.

name string

Member name.

parameterTypes Type[]

Target parameter types.

Returns

MethodInfo[]

MethodInfo range of all valid methods.

GetAccessibleMemberFilter(StringSegment)

Creates a MemberFilter from this configuration and the given symbol.

[Pure]
public MemberFilter GetAccessibleMemberFilter(StringSegment symbol)

Parameters

symbol StringSegment

Symbol to filter by.

Returns

MemberFilter

New MemberFilter instance.

TryFindTypeCtor(Type, Type[])

Attempts to find a ConstructorInfo for the provided type and parameter types.

[Pure]
public ConstructorInfo? TryFindTypeCtor(Type type, Type[] parameterTypes)

Parameters

type Type

Target type.

parameterTypes Type[]

Target parameter types.

Returns

ConstructorInfo

ConstructorInfo or null when it was not found.

TryFindTypeIndexer(Type, Type[])

Attempts to find a MemberInfo that represents an indexer for the provided type and parameter types.

[Pure]
public MemberInfo? TryFindTypeIndexer(Type type, Type[] parameterTypes)

Parameters

type Type

Target type.

parameterTypes Type[]

Target parameter types.

Returns

MemberInfo

MemberInfo or null when it was not found.