private void ReleaseNativeEnumerator() { if (this.nativeEnumerator != null) { Marshal.FinalReleaseComObject(this.nativeEnumerator); this.nativeEnumerator = null; } }
internal KeyValueStoreNotificationEnumerator( NativeRuntime.IFabricKeyValueStoreNotificationEnumerator nativeEnumerator) { Utility.WrapNativeSyncInvokeInMTA(() => { this.nativeEnumerator = (NativeRuntime.IFabricKeyValueStoreNotificationEnumerator2)nativeEnumerator; }, "KeyValueStoreNotificationEnumerator.ctor"); this.cachedCurrent = null; this.cachedCurrentLock = new object(); }