Lamba Expressions
<< Click to Display Table of Contents >> Lamba Expressions |
The NinjaScript framework utilizes Lambda expressions in various classes, so it is important to fully understand these highly specialized expressions as a NinjaScript developer. Lambda expressions are like anonymous methods, and are often used to define delegates using the Language Integrated Query (LINQ) model. Unlike methods, Lambda expressions contain no access modifiers, return types, or other components of method declaration. Lambdas are created once in the place at which they will be used, rather than being declared outside of the main script logic and re-used multiple times.
Input Parameters => Expression
// Define a new delegate |