// // Summary: // Creates a new CryptoHandle. ParamType has information as to what // nativeParameters has to be marshaled into. // protected CryptoHandle(InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr nativeParameters, Type paramType) { m_internalHandle = nativeHandle; m_internalHandle.Initialize(expiration, Marshal.PtrToStructure(nativeParameters, paramType)); }