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

LoadDelegateAsync() приватный Метод

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

                Console.WriteLine("   End of {0}: {1}", nameof(LoadDelegateAsync), product(4, 2));
            }