Rhino.ScriptRuntime.NewObject C# (CSharp) Method

NewObject() public static method

public static NewObject ( Context cx, Scriptable scope, string constructorName, object args ) : Scriptable
cx Context
scope Scriptable
constructorName string
args object
return Scriptable
		public static Scriptable NewObject(Context cx, Scriptable scope, string constructorName, object[] args)
		{
			scope = ScriptableObject.GetTopLevelScope(scope);
			Function ctor = GetExistingCtor(cx, scope, constructorName);
			if (args == null)
			{
				args = ScriptRuntime.emptyArgs;
			}
			return ctor.Construct(cx, scope, args);
		}

Same methods

ScriptRuntime::NewObject ( object fun, Context cx, Scriptable scope, object args ) : Scriptable
ScriptRuntime