![]() | IEvaluatorLoadDelegateT Method |
Returns instance of T delegate for the first method in the auto-generated class.
Namespace: CSScriptLib
T LoadDelegate<T>( string code ) where T : class
[Missing <typeparam name="T"/> documentation for "M:CSScriptLib.IEvaluator.LoadDelegate``1(System.String)"]
var Product = CSScript.Evaluator .LoadDelegate<Func<int, int, int>>( @"int Product(int a, int b) { return a * b; }"); int result = Product(3, 2);