public override string ToString() { StringBuilder builder = new StringBuilder(); builder.Clear(); builder.Append("<RSAKeyValue>"); builder.Append("<Modulus>"); builder.Append(Modulus.Trim()); builder.Append("</Modulus>"); builder.Append("<Exponent>"); builder.Append(Exponent.Trim()); builder.Append("</Exponent>"); builder.Append("<P>"); builder.Append(P.Trim()); builder.Append("</P>"); builder.Append("<Q>"); builder.Append(Q.Trim()); builder.Append("</Q>"); builder.Append("<DP>"); builder.Append(Dp.Trim()); builder.Append("</DP>"); builder.Append("<DQ>"); builder.Append(Dq.Trim()); builder.Append("</DQ>"); builder.Append("<InverseQ>"); builder.Append(InverseQ.Trim()); builder.Append("</InverseQ>"); builder.Append("<D>"); builder.Append(D.Trim()); builder.Append("</D>"); builder.Append("</RSAKeyValue>"); return(builder.ToString()); }