public override string ToString() { var sb = new StringBuilder("BuddyList("); bool __first = true; if (Classification != null && __isset.classification) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Classification: "); Classification.ToString(sb); } if (DisplayName != null && __isset.displayName) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("DisplayName: "); DisplayName.ToString(sb); } if (__isset.totalBuddyCount) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("TotalBuddyCount: "); TotalBuddyCount.ToString(sb); } if (PopularContacts != null && __isset.popularContacts) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("PopularContacts: "); PopularContacts.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.classification) { hashcode = (hashcode * 397) + Classification.GetHashCode(); } if (__isset.displayName) { hashcode = (hashcode * 397) + DisplayName.GetHashCode(); } if (__isset.totalBuddyCount) { hashcode = (hashcode * 397) + TotalBuddyCount.GetHashCode(); } if (__isset.popularContacts) { hashcode = (hashcode * 397) + TCollections.GetHashCode(PopularContacts); } } return(hashcode); }