Table of Contents

Class TypeHelper

Namespace
NCalc.Helpers
Assembly
NCalc.Core.dll
public static class TypeHelper
Inheritance
TypeHelper
Inherited Members

Fields

ImplicitPrimitiveConversionTable

public static readonly FrozenDictionary<Type, Type[]> ImplicitPrimitiveConversionTable

Field Value

FrozenDictionary<Type, Type[]>

Methods

CompareUsingMostPreciseType(object?, object?, ComparisonOptions)

public static int CompareUsingMostPreciseType(object? a, object? b, ComparisonOptions options)

Parameters

a object
b object
options ComparisonOptions

Returns

int

GetMostPreciseNumberType(Type, Type)

Gets the most precise number type.

public static Type? GetMostPreciseNumberType(Type a, Type b)

Parameters

a Type

Type a.

b Type

Type b.

Returns

Type

GetStringComparer(ComparisonOptions)

public static StringComparer GetStringComparer(ComparisonOptions options)

Parameters

options ComparisonOptions

Returns

StringComparer

HasNullOrTypeConflict(object?, object?, ExpressionOptions)

public static bool HasNullOrTypeConflict(object? a, object? b, ExpressionOptions options)

Parameters

a object
b object
options ExpressionOptions

Returns

bool

IsReal(object?)

public static bool IsReal(object? value)

Parameters

value object

Returns

bool

IsUnsignedType(object?)

public static bool IsUnsignedType(object? value)

Parameters

value object

Returns

bool

TypeCodeExpandBits(TypeCode)

public static TypeCode TypeCodeExpandBits(TypeCode typeCode)

Parameters

typeCode TypeCode

Returns

TypeCode