Rhino.BaseFunction.InitPrototypeId C# (CSharp) Method

InitPrototypeId() protected method

protected InitPrototypeId ( int id ) : void
id int
return void
		protected internal override void InitPrototypeId(int id)
		{
			string s;
			int arity;
			switch (id)
			{
				case Id_constructor:
				{
					arity = 1;
					s = "constructor";
					break;
				}

				case Id_toString:
				{
					arity = 1;
					s = "toString";
					break;
				}

				case Id_toSource:
				{
					arity = 1;
					s = "toSource";
					break;
				}

				case Id_apply:
				{
					arity = 2;
					s = "apply";
					break;
				}

				case Id_call:
				{
					arity = 1;
					s = "call";
					break;
				}

				case Id_bind:
				{
					arity = 1;
					s = "bind";
					break;
				}

				default:
				{
					throw new ArgumentException(id.ToString());
				}
			}
			InitPrototypeMethod(FUNCTION_TAG, id, s, arity);
		}