WithContext() 개인적인 메소드

Performs the action given by type with the attached Rhino.ContextFactory .
private WithContext ( ) : void
리턴 void
예제 #1
0
파일: Dim.cs 프로젝트: hazzik/Rhino.Net
		/// <summary>Returns an array of the property names on the given script object.</summary>
		/// <remarks>Returns an array of the property names on the given script object.</remarks>
		public virtual object[] GetObjectIds(object @object)
		{
			Dim.DimIProxy action = new Dim.DimIProxy(this, IPROXY_OBJECT_IDS);
			action.@object = @object;
			action.WithContext();
			return action.objectArrayResult;
		}
예제 #2
0
파일: Dim.cs 프로젝트: hazzik/Rhino.Net
		/// <summary>Returns the value of a property on the given script object.</summary>
		/// <remarks>Returns the value of a property on the given script object.</remarks>
		public virtual object GetObjectProperty(object @object, object id)
		{
			Dim.DimIProxy action = new Dim.DimIProxy(this, IPROXY_OBJECT_PROPERTY);
			action.@object = @object;
			action.id = id;
			action.WithContext();
			return action.objectResult;
		}
예제 #3
0
파일: Dim.cs 프로젝트: hazzik/Rhino.Net
		/// <summary>Returns whether the given string is syntactically valid script.</summary>
		/// <remarks>Returns whether the given string is syntactically valid script.</remarks>
		public virtual bool StringIsCompilableUnit(string str)
		{
			Dim.DimIProxy action = new Dim.DimIProxy(this, IPROXY_STRING_IS_COMPILABLE);
			action.text = str;
			action.WithContext();
			return action.booleanResult;
		}
예제 #4
0
파일: Dim.cs 프로젝트: hazzik/Rhino.Net
		/// <summary>Converts the given script object to a string.</summary>
		/// <remarks>Converts the given script object to a string.</remarks>
		public virtual string ObjectToString(object @object)
		{
			Dim.DimIProxy action = new Dim.DimIProxy(this, IPROXY_OBJECT_TO_STRING);
			action.@object = @object;
			action.WithContext();
			return action.stringResult;
		}
예제 #5
0
파일: Dim.cs 프로젝트: hazzik/Rhino.Net
		/// <summary>Evaluates the given script.</summary>
		/// <remarks>Evaluates the given script.</remarks>
		public virtual void EvalScript(string url, string text)
		{
			Dim.DimIProxy action = new Dim.DimIProxy(this, IPROXY_EVAL_SCRIPT);
			action.url = url;
			action.text = text;
			action.WithContext();
		}
예제 #6
0
파일: Dim.cs 프로젝트: hazzik/Rhino.Net
		/// <summary>Compiles the given script.</summary>
		/// <remarks>Compiles the given script.</remarks>
		public virtual void CompileScript(string url, string text)
		{
			Dim.DimIProxy action = new Dim.DimIProxy(this, IPROXY_COMPILE_SCRIPT);
			action.url = url;
			action.text = text;
			action.WithContext();
		}