public override string ToString() { var sb = new StringBuilder("RSAKey("); bool __first = true; if (Keynm != null && __isset.keynm) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Keynm: "); Keynm.ToString(sb); } if (Nvalue != null && __isset.nvalue) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Nvalue: "); Nvalue.ToString(sb); } if (Evalue != null && __isset.evalue) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("Evalue: "); Evalue.ToString(sb); } if (SessionKey != null && __isset.sessionKey) { if (!__first) { sb.Append(", "); } __first = false; sb.Append("SessionKey: "); SessionKey.ToString(sb); } sb.Append(")"); return(sb.ToString()); }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.keynm) { hashcode = (hashcode * 397) + Keynm.GetHashCode(); } if (__isset.nvalue) { hashcode = (hashcode * 397) + Nvalue.GetHashCode(); } if (__isset.evalue) { hashcode = (hashcode * 397) + Evalue.GetHashCode(); } if (__isset.sessionKey) { hashcode = (hashcode * 397) + SessionKey.GetHashCode(); } } return(hashcode); }