/// <summary> /// Release resources /// </summary> /// <param name="disposing">Indicates that this mothod is being called from Dispose() rather than the finalizer.</param> protected override void Dispose(bool disposing) { if (disposing) { knownFolderSettings = null; } if (knownFolderNative != null) { Marshal.ReleaseComObject(knownFolderNative); knownFolderNative = null; } base.Dispose(disposing); }