Пример #1
0
 /// <summary>
 /// Returns an upper bound on the size of the PublicKey, as if it was written
 /// to an output stream.
 /// </summary>
 /// <param name="comprMode">The compression mode</param>
 /// <exception cref="ArgumentException">if the compression mode is not
 /// supported</exception>
 /// <exception cref="InvalidOperationException">if the size does not fit in
 /// the return type</exception>
 public long SaveSize(ComprModeType comprMode)
 {
     NativeMethods.PublicKey_SaveSize(
         NativePtr, (byte)comprMode, out long outBytes);
     return(outBytes);
 }