Arithmetic.Details

public static class Arithmetic.Details
Exposes geeky details about the arithmetic class.

Methods

Count

#
public static int Count(Binary fn)
Gets the number of defined binary functions of the given type.
fn (Arithmetic.Binary)

Count

#
public static int Count(bool includeOperators, bool includeUnary, bool includeBinary, bool includeTernary)
Gets the total number of defined operations.
includeOperators (bool)
includeUnary (bool)
includeBinary (bool)
includeTernary (bool)

Count

#
public static int Count(Operation op)
Gets the number of defined operations of the given type.
op (Arithmetic.Operation)

Count

#
public static int Count(Ternary fn)
Gets the number of defined ternary functions of the given type.
fn (Arithmetic.Ternary)

Count

#
public static int Count(Unary fn)
Gets the number of defined unary functions of the given type.
fn (Arithmetic.Unary)

Find

#
public static Delegate Find(Binary fn, Type a, Type b)
Find the delegate which provides functionality for the given binary function and the given argument types. This lookup is relatively slow, you should consider caching the result if you can.
fn (Arithmetic.Binary)
a (Type)
b (Type)

Find

#
public static Delegate Find(Operation op, Type a, Type b)
Find the delegate which provides functionality for the given operator and the given argument types. This lookup is relatively slow, you should consider caching the result if you can.
op (Arithmetic.Operation)
a (Type)
b (Type)

Find

#
public static Delegate Find(Ternary fn, Type a, Type b, Type c)
Find the delegate which provides functionality for the given binary function and the given argument types. This lookup is relatively slow, you should consider caching the result if you can.
fn (Arithmetic.Ternary)
a (Type)
b (Type)
c (Type)

Find

#
public static Delegate Find(Unary fn, Type a)
Find the delegate which provides functionality for the given unary function and the given argument type. This lookup is relatively slow, you should consider caching the result if you can.
fn (Arithmetic.Unary)
a (Type)

OperatorSignatures

#
public static IEnumerable<string> OperatorSignatures(Operation op)
Enumerate over all defined operators of a specific kind.
op (Arithmetic.Operation)