AjScript.Language.Function.Function C# (CSharp) Метод

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

public Function ( string parameterNames, ICommand body, IContext context ) : System
parameterNames string
body ICommand
context IContext
Результат System
        public Function(string[] parameterNames, ICommand body, IContext context)
        {
            // TODO Review this cyclic reference
            this.Function = this;

            DynamicObject prototype = new DynamicObject();

            this.SetValue("prototype", functionPrototype);

            this.parameterNames = parameterNames;
            this.body = body;

            if (parameterNames == null)
                this.arity = 0;
            else
                this.arity = parameterNames.Length;

            this.context = context;
        }

Same methods

Function::Function ( ) : System
Function::Function ( string parameterNames, ICommand body ) : System