Rhino.BoundFunction.Construct C# (CSharp) Method

Construct() public method

public Construct ( Context cx, Scriptable scope, object extraArgs ) : Scriptable
cx Context
scope Scriptable
extraArgs object
return Scriptable
		public override Scriptable Construct(Context cx, Scriptable scope, object[] extraArgs)
		{
			if (targetFunction is Function)
			{
				return ((Function)targetFunction).Construct(cx, scope, Concat(boundArgs, extraArgs));
			}
			throw ScriptRuntime.TypeError0("msg.not.ctor");
		}