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

IsReal(object?)

public static bool IsReal(object? value)

Parameters

value object

Returns

bool