Exemple #1
0
 /// <summary>
 /// Compares the Templates with an other instance of Templates for equality.
 /// </summary>
 /// <param name="other"></param>
 /// <returns>Returns true, if both instances are equal, else false.</returns>
 public bool Equals(Templates other)
 {
     // not any entry missing in this, nor in the other list
     return(!this.Except(other).Union(other.Except(this)).Any());
 }
Exemple #2
0
 public TemplateException(string message, Part part, Parts parts, Template template, Templates templates) : base(message)
 {
     Part      = part;
     Parts     = parts;
     Template  = template;
     Templates = templates;
 }