Exemplo n.º 1
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");

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

            _name       = name;
            _parameters = parameters != null ? parameters : JavaScriptParameters.Empty;
        }