private static CheckInvalidKey ( Microsoft.Win32.SafeHandles.SafeRsaHandle key ) : void | ||
key | Microsoft.Win32.SafeHandles.SafeRsaHandle | |
return | void |
private static void CheckInvalidKey(SafeRsaHandle key)
{
if (key == null || key.IsInvalid)
{
throw new CryptographicException(SR.Cryptography_OpenInvalidHandle);
}
}