示例#1
0
 public void AddTemplateVariable(TemplateVariable tv)
 {
     if (TemplateVariables.Any(x => x == tv))
     {
         throw new ArgumentException("Duplicate Value.");
     }
     ((List <TemplateVariable>)TemplateVariables).Add(tv);
 }
示例#2
0
        public override bool Equals(object obj)
        {
            TemplateVariable z = obj as TemplateVariable;

            return(z.Value == this.Value);
        }