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; }
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; }