Rhino.BaseFunction.RealFunction C# (CSharp) Method

RealFunction() private method

private RealFunction ( Scriptable thisObj, IdFunctionObject f ) : BaseFunction
thisObj Scriptable
f IdFunctionObject
return BaseFunction
		private Rhino.BaseFunction RealFunction(Scriptable thisObj, IdFunctionObject f)
		{
			object x = thisObj.GetDefaultValue(ScriptRuntime.FunctionClass);
			if (x is Delegator)
			{
				x = ((Delegator)x).GetDelegee();
			}
			if (x is Rhino.BaseFunction)
			{
				return (Rhino.BaseFunction)x;
			}
			throw ScriptRuntime.TypeError1("msg.incompat.call", f.GetFunctionName());
		}