public JavaScriptConstructor(string name, JavaScriptParameters parameters)
        {
            if (name == null)
                throw new ArgumentNullException("name");

            if (name.Length == 0)
                throw new ArgumentException("Constructor name cannot be empty.", "name");

            _name = name;
            _parameters = parameters != null ? parameters : JavaScriptParameters.Empty;
        }
示例#2
0
 public JavaScriptConstructor(string name, JavaScriptParameters parameters)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (name.Length == 0)
     {
         throw new ArgumentException("Constructor name cannot be empty.", "name");
     }
     this._name       = name;
     this._parameters = (parameters != null) ? parameters : JavaScriptParameters.Empty;
 }