public LogicValue this[string key] { get { if (!this.ContainsKey(key)) { LogicValue logicValue = new LogicValue(); logicValue.Key = key; logicValue.TargetIndex = this.TargetIndex; ValueDic.Add(key, logicValue); } return(this.ValueDic[key]); } set { if (!this.ContainsKey(key)) { ValueDic.Add(key, value); } else { ValueDic[key] = value; } } }
public LogicValue AddValue() { LogicValue temp = new LogicValue(); Value.Add(temp); return(temp); }
public virtual void SetValue(LogicValue value) { if (this.ShareData == null) { this.ShareData = new LogicData(this.Guid, this.CurrentLogicObject); } this.ShareData.SetValue(value); }
public void SetValue(LogicValue value) { this.SetValue(value.Key, value.Data); }