Rhino.NativeWith.SetParentScope C# (CSharp) Method

SetParentScope() public method

public SetParentScope ( Scriptable parent ) : void
parent Scriptable
return void
		public virtual void SetParentScope(Scriptable parent)
		{
			this.parent = parent;
		}

Usage Example

示例#1
0
		internal static void Init(Scriptable scope, bool @sealed)
		{
			Rhino.NativeWith obj = new Rhino.NativeWith();
			obj.SetParentScope(scope);
			obj.SetPrototype(ScriptableObject.GetObjectPrototype(scope));
			IdFunctionObject ctor = new IdFunctionObject(obj, FTAG, Id_constructor, "With", 0, scope);
			ctor.MarkAsConstructor(obj);
			if (@sealed)
			{
				ctor.SealObject();
			}
			ctor.ExportAsScopeProperty();
		}
All Usage Examples Of Rhino.NativeWith::SetParentScope