CSScriptEvaluatorExtensions.HostApp.UnloadingSamples.CreateDelegateRemotely C# (CSharp) Метод

CreateDelegateRemotely() публичный Метод

public CreateDelegateRemotely ( ) : void
Результат void
            public void CreateDelegateRemotely()
            {
var sum = CSScript.Evaluator
                    .CreateDelegateRemotely<int>(@"int Sum(int a, int b)
                                                    {
                                                        return a+b;
                                                    }");

Console.WriteLine("{0}: {1}", nameof(CreateDelegateRemotely), sum(15, 3));

sum.UnloadOwnerDomain();
            }