Skip to content

Commit 86e9fe7

Browse files
author
Sébastien Geiser
committed
Correction of spelling Properies -> Properties in
OptionStaticPropertiesGetActive, OptionInstancePropertiesGetActive
1 parent fb399ef commit 86e9fe7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CodingSeb.ExpressionEvaluator.Tests/ExpressionEvaluatorTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,7 @@ public static IEnumerable<TestCaseData> TestCasesForExceptionThrowingEvaluation
13381338

13391339
evaluator = new ExpressionEvaluator()
13401340
{
1341-
OptionStaticProperiesGetActive = false
1341+
OptionStaticPropertiesGetActive = false
13421342
};
13431343

13441344
evaluator.Namespaces.Add(typeof(ClassForTest1).Namespace);
@@ -1366,7 +1366,7 @@ public static IEnumerable<TestCaseData> TestCasesForExceptionThrowingEvaluation
13661366

13671367
evaluator = new ExpressionEvaluator()
13681368
{
1369-
OptionInstanceProperiesGetActive = false
1369+
OptionInstancePropertiesGetActive = false
13701370
};
13711371

13721372
evaluator.Variables["customObject"] = new ClassForTest1();

CodingSeb.ExpressionEvaluator/ExpressionEvaluator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ public bool OptionNewFunctionEvaluationActive
695695
/// if <c>false</c> unactive this functionality.
696696
/// By default : true
697697
/// </summary>
698-
public bool OptionStaticProperiesGetActive { get; set; } = true;
698+
public bool OptionStaticPropertiesGetActive { get; set; } = true;
699699

700700
/// <summary>
701701
/// if <c>true</c> allow to call instance methods on objects.
@@ -709,7 +709,7 @@ public bool OptionNewFunctionEvaluationActive
709709
/// if <c>false</c> unactive this functionality.
710710
/// By default : true
711711
/// </summary>
712-
public bool OptionInstanceProperiesGetActive { get; set; } = true;
712+
public bool OptionInstancePropertiesGetActive { get; set; } = true;
713713

714714
/// <summary>
715715
/// if <c>true</c> allow to get object at index or key like IndexedObject[indexOrKey]
@@ -1990,9 +1990,9 @@ protected virtual bool EvaluateVarOrFunc(string expression, Stack<object> stack,
19901990
{
19911991
BindingFlags flag = DetermineInstanceOrStatic(ref objType, ref obj, ref valueTypeNestingTrace);
19921992

1993-
if (!OptionStaticProperiesGetActive && (flag & BindingFlags.Static) != 0)
1993+
if (!OptionStaticPropertiesGetActive && (flag & BindingFlags.Static) != 0)
19941994
throw new ExpressionEvaluatorSyntaxErrorException($"[{objType}] object has no public Property or Field named \"{varFuncName}\".");
1995-
if (!OptionInstanceProperiesGetActive && (flag & BindingFlags.Instance) != 0)
1995+
if (!OptionInstancePropertiesGetActive && (flag & BindingFlags.Instance) != 0)
19961996
throw new ExpressionEvaluatorSyntaxErrorException($"[{objType}] object has no public Property or Field named \"{varFuncName}\".");
19971997

19981998
bool isDynamic = (flag & BindingFlags.Instance) != 0 && obj is IDynamicMetaObjectProvider && obj is IDictionary<string, object>;

0 commit comments

Comments
 (0)