Rhino.RhinoSecurityManager.GetCurrentScriptClass C# (CSharp) Method

GetCurrentScriptClass() protected method

Get the class of the top-most stack element representing a script.
Get the class of the top-most stack element representing a script.
protected GetCurrentScriptClass ( ) : Type
return System.Type
		protected internal virtual Type GetCurrentScriptClass()
		{
			Type[] context = GetClassContext();
			foreach (Type c in context)
			{
				if (c != typeof(InterpretedFunction) && typeof(NativeFunction).IsAssignableFrom(c) || typeof(PolicySecurityController.SecureCaller).IsAssignableFrom(c))
				{
					return c;
				}
			}
			return null;
		}
	}
RhinoSecurityManager