Esempio n. 1
0
        /// <summary>
        /// Clone instance
        /// </summary>
        /// <returns>instance</returns>
        object ICloneable.Clone()
        {
            ScriptMemberExpression item = new ScriptMemberExpression();

            item.strName   = this.strName;
            item.strScript = this.strScript;
            return(item);
        }
Esempio n. 2
0
        public string GetScript(string name)
        {
            ScriptMemberExpression item = this[name];

            if (item == null)
            {
                return(null);
            }
            else
            {
                return(item.Script);
            }
        }
Esempio n. 3
0
 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;
     }
 }
Esempio n. 4
0
 public void Remove(ScriptMemberExpression item)
 {
     this.List.Remove(item);
 }
Esempio n. 5
0
 public int Add(ScriptMemberExpression item)
 {
     return(this.List.Add(item));
 }