public void Dispose() { if (propertyWriter != null) { propertyWriter.Dispose(); } propertyWriter = null; shellFile.Dispose(); shellFile = null; //shellProperty = null; }