CSScriptEvaluatorExtensions.HostApp.AsyncSamples.CreateDelegateAsync C# (CSharp) Метод

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

public CreateDelegateAsync ( ) : void
Результат void
            public async void CreateDelegateAsync()
            {
                var product = await CSScript.Evaluator
                                            .CreateDelegateAsync<int>(
                                                  @"int Product(int a, int b)
                                                    {
                                                        return a * b;
                                                    }");

                Console.WriteLine("   End of {0}: {1}", nameof(CreateDelegateAsync), product(15, 3));
            }