Table of Contents

Class ParametersHelper

Namespace
NCalc.Helpers
Assembly
NCalc.Core.dll

Provides helper methods for handling parameters.

public static class ParametersHelper
Inheritance
ParametersHelper
Inherited Members

Methods

GetEnumerators(IDictionary<string, object?>, out int?)

Gets enumerators for the IEnumerable parameters and checks that they all have the same number of items.

public static Dictionary<string, IEnumerator> GetEnumerators(IDictionary<string, object?> parameters, out int? size)

Parameters

parameters IDictionary<string, object>

The dictionary of parameters.

size int?

The size of the enumerable, if any. Set to null if there are no IEnumerable parameters.

Returns

Dictionary<string, IEnumerator>

A dictionary of parameter names and their corresponding enumerators.

Exceptions

NCalcException

Thrown when the IEnumerable parameters do not have the same number of items.