public void AddWithValue(string name, object value) { this.BuildCache(); plyVar plyVar = null; plyVar = ((value != null) ? this.AddOfValueType(name, value.GetType()) : this.AddOfplyVarType(name, typeof(plyVar_SystemObject))); if (plyVar != null) { plyVar.SetValue(value); } }
public bool SetVarValue(string name, object value) { plyVar plyVar = this.FindVariable(name); if (plyVar != null) { plyVar.SetValue(value); return(true); } return(false); }