Skip to content

Commit b4063e9

Browse files
author
Sébastien Geiser
committed
Change Variables In IDictionary<string,object> #29
1 parent e4e747f commit b4063e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************************************
22
Title : ExpressionEvaluator (https://github.com/codingseb/ExpressionEvaluator)
3-
Version : 1.3.5.0
3+
Version : 1.3.5.1
44
(if last digit (the forth) is not a zero, the version is an intermediate version and can be unstable)
55
66
Author : Coding Seb
@@ -797,15 +797,15 @@ public BindingFlags StaticBindingFlag
797797

798798
#region Custom and on the fly variables and methods
799799

800-
private Dictionary<string, object> variables = new Dictionary<string, object>(StringComparer.Ordinal);
800+
private IDictionary<string, object> variables = new Dictionary<string, object>(StringComparer.Ordinal);
801801

802802
/// <summary>
803803
/// The Values of the variable use in the expressions
804804
/// </summary>
805-
public Dictionary<string, object> Variables
805+
public IDictionary<string, object> Variables
806806
{
807807
get { return variables; }
808-
set { variables = value == null ? new Dictionary<string, object>() : new Dictionary<string, object>(value, StringComparerForCasing); }
808+
set { variables = value == null ? new Dictionary<string, object>(StringComparerForCasing) : new Dictionary<string, object>(value, StringComparerForCasing); }
809809
}
810810

811811
/// <summary>
@@ -840,7 +840,7 @@ public ExpressionEvaluator()
840840
/// Constructor with variable initialize
841841
/// </summary>
842842
/// <param name="variables">The Values of the variable use in the expressions</param>
843-
public ExpressionEvaluator(Dictionary<string, object> variables) : this()
843+
public ExpressionEvaluator(IDictionary<string, object> variables) : this()
844844
{
845845
Variables = variables;
846846
}

0 commit comments

Comments
 (0)