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"); } _name = name; _parameters = parameters != null ? parameters : JavaScriptParameters.Empty; }