示例#1
0
        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));
        }
示例#2
0
 public static bool GlobalVariableExists(string name)
 {
     return(GlobalVariables.ContainsKey(name) ||
            FieldAccessor <Value> .ChooseObject(GlobalObjects, name) != null);
 }