public static GetSetValue GetGlobalVariable(string name) { if (GlobalVariables.ContainsKey(name)) { return(GlobalVariables[name]); } var obj = FieldAccessor <Value> .ChooseObject(GlobalObjects, name); return(obj == null ? null : new VariableWrapper(obj, name)); }
public static bool GlobalVariableExists(string name) { return(GlobalVariables.ContainsKey(name) || FieldAccessor <Value> .ChooseObject(GlobalObjects, name) != null); }