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