public void DoesNotThrowWhenDisposingTwice()
        {
            var cf = new WinChromaFactory();

#pragma warning disable IDISP016, IDISP017
            cf.Dispose();
            cf.Dispose();
#pragma warning restore IDISP016, IDISP017
        }
Ejemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     _cc?.Dispose();
     _chromaFactory.Dispose();
 }