Boo.Lang.Compiler.Steps.TransformCallableDefinitions.CreateBeginInvokeMethod C# (CSharp) Метод

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

private CreateBeginInvokeMethod ( Boo.Lang.Compiler.Ast.CallableDefinition node ) : Method
node Boo.Lang.Compiler.Ast.CallableDefinition
Результат Boo.Lang.Compiler.Ast.Method
        Method CreateBeginInvokeMethod(CallableDefinition node)
        {
            Method method = CreateRuntimeMethod("BeginInvoke",
                        CodeBuilder.CreateTypeReference(node.LexicalInfo, typeof(IAsyncResult)));
            method.Parameters.ExtendWithClones(node.Parameters);
            method.Parameters.Add(
                new ParameterDeclaration("callback",
                    CodeBuilder.CreateTypeReference(node.LexicalInfo, typeof(AsyncCallback))));
            method.Parameters.Add(
                new ParameterDeclaration("asyncState",
                    CodeBuilder.CreateTypeReference(node.LexicalInfo, TypeSystemServices.ObjectType)));
            return method;
        }