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

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