private void Dispose(bool disposing) { Marshal.FreeHGlobal((IntPtr)_pixels); _pixels = null; _width = 0; _height = 0; _token = 0; if (disposing) { _token = _tokenFactory.CreateNonZeroToken(); ChainInstancePool <DefaultImageSource> .ReturnInstanceFast(this); } }
private static void Return(FrameTimingAwaitableTaskSource source) { source._awaitableCore = default; ChainInstancePool <FrameTimingAwaitableTaskSource> .ReturnInstanceFast(source); }