Rhino.ScriptRuntime.Name C# (CSharp) Method

Name() public static method

Looks up a name in the scope chain and returns its value.
Looks up a name in the scope chain and returns its value.
public static Name ( Context cx, Scriptable scope, string name ) : object
cx Context
scope Scriptable
name string
return object
		public static object Name(Context cx, Scriptable scope, string name)
		{
			Scriptable parent = scope.GetParentScope();
			if (parent == null)
			{
				object result = TopScopeName(cx, scope, name);
				if (result == ScriptableConstants.NOT_FOUND)
				{
					throw NotFoundError(scope, name);
				}
				return result;
			}
			return NameOrFunction(cx, scope, parent, name, false);
		}
ScriptRuntime