Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     if (handle != IntPtr.Zero)
     {
         CFHelpers.CFRelease(handle);
         handle = IntPtr.Zero;
     }
     if (fallback != null)
     {
         fallback.Dispose();
         fallback = null;
     }
 }
Esempio n. 2
0
        public virtual void Reset()
        {
            if (impl != null)
            {
                impl.Dispose();
                impl = null;
            }

            lazyCertHash               = null;
            lazyIssuer                 = null;
            lazySubject                = null;
            lazySerialNumber           = null;
            lazyKeyAlgorithm           = null;
            lazyKeyAlgorithmParameters = null;
            lazyPublicKey              = null;
            lazyNotBefore              = DateTime.MinValue;
            lazyNotAfter               = DateTime.MinValue;
        }