Exemple #1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Returns HashCode</returns>
 public override int GetHashCode()
 {
     return(String.Format("{0}|{1}",
                          Owners.Aggregate(0, (acc, next) => acc += (next != null ? next.GetHashCode() : 0)),
                          Members.Aggregate(0, (acc, next) => acc += (next != null ? next.GetHashCode() : 0))
                          ).GetHashCode());
 }
Exemple #2
0
 public override string ToString()
 {
     return(Members.Aggregate("", (current, member) => current + (member + " ")));
 }