You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs2/pages/documentations/eval-execute.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ You can specify parameter value to use in the expression from various way:
10
10
- Class Member
11
11
- Dictionary
12
12
13
-
Under the hood, the fist time an expression is executed, it's getting compiled and the delegate is stored in the memory before being returned and executed. All future call from the same expression will retrieve the delegate from the memory to optimize the performance.
13
+
Under the hood, the first time an expression is executed, it's getting compiled and the delegate is stored in the memory before being returned and executed. All future calls from the same expression will retrieve the delegate from the memory to optimize the performance.
14
14
15
-
Even with this optimization, if you have to evaluate multiple times the same expression, by example in a for loop, we highly recommend you to use directly the delegate returning from the Compile method instead.
15
+
Even with this optimization, if you have to evaluate multiple times the same expression, for example in a for loop, we highly recommend you to use directly the delegate returning from the Compile method instead.
16
16
17
17
## Execute and return a strongly typed result
18
18
You can return the result as a strongly typed type:
Copy file name to clipboardExpand all lines: docs2/pages/documentations/linq-dynamic.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
## Description
4
4
Extend the IEnumerable<T> and IQueryable<T> interface with methods to use LINQ with dynamic expressions.
5
5
6
-
LINQ (Language Integrated Query) has been introduced in .NET 3.5 and since has been one of the most used features. ORM like Entity Framework takes advantage from this feature and allow you to write type-safe queries.
6
+
Since LINQ (Language Integrated Query) has been introduced in .NET 3.5, it has been one of the most used feature. ORM like Entity Framework takes advantage of this feature and allows you to write type-safe queries.
7
7
8
-
The theory wants you only to use type-safe queries. However, the reality requires often you to write LINQ with dynamic query expressions.
8
+
In theory, you should only use it to write type-safe queries. However, the reality often requires you to write LINQ with dynamic query expressions.
9
9
10
10
## LINQ Dynamic - Predicate
11
-
You can use any LINQ method that support predicate with a dynamic C# expression :
11
+
You can use any LINQ method that supports predicate with a dynamic C# expression :
Create a new shallow copy of the current EvalContext
77
+
Create a new shallow copy of the current EvalContext.
78
78
79
79
> Cloning the EvalContext can be useful to copy all options including all types already registered to use it to change only what's required for the expression to evaluate.
Copy file name to clipboardExpand all lines: docs2/pages/getting-started/overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## What's C# Eval Expression library?
4
4
5
-
Our library is a lightweight expression evaluator that support nearly everything. You can evaluate or compile almost all possible C# expression including:
5
+
Our library is a lightweight expression evaluator that supports nearly everything. You can evaluate or compile almost all possible C# expressions including:
0 commit comments