/// <summary> /// Clone instance /// </summary> /// <returns>instance</returns> object ICloneable.Clone() { ScriptMemberExpression item = new ScriptMemberExpression(); item.strName = this.strName; item.strScript = this.strScript; return(item); }
public string GetScript(string name) { ScriptMemberExpression item = this[name]; if (item == null) { return(null); } else { return(item.Script); } }
public void SetScript(string name, string script) { if (script == null || script.Trim().Length == 0) { ScriptMemberExpression item = this[name]; if (item != null) { this.List.Remove(item); } } else { ScriptMemberExpression item = this[name]; if (item == null) { item = new ScriptMemberExpression(); item.Name = name; this.List.Add(item); } item.Script = script; } }
public void Remove(ScriptMemberExpression item) { this.List.Remove(item); }
public int Add(ScriptMemberExpression item) { return(this.List.Add(item)); }