Esempio n. 1
0
        public virtual GQHSMVariable this[string key]
        {
            get
            {
                if (!_variables.ContainsKey(key))
                {
                    GQHSMVariable newVar = new GQHSMVariable(null);
                    newVar.SetReference(null, null);
                    _variables.Add(key, newVar);
                }

                return(_variables[key]);
            }

            set
            {
                if (!_variables.ContainsKey(key))
                {
                    _variables.Add(key, value);
                }
                else
                {
                    _variables[key] = value;
                }
            }
        }
Esempio n. 2
0
 public void Copy(GQHSMVariable src)
 {
     _value        = src._value;
     _name         = src._name;
     _handlerClass = src._handlerClass;
     _fieldInfo    = src._fieldInfo;
     _propertyInfo = src._propertyInfo;
     _bIsInDirect  = src._bIsInDirect;
 }