Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Message IDE0067 Disposable object created by 'new SaveFileDialog
- {
- Filter = "JSON files (*.json)|*.json"
- }' is never disposed ProfileConverter C:\Users\mouse\source\repos\ZzukBot4-master\Plugins\ProfileConverter\GUI C:\Users\mouse\source\repos\ZzukBot4-master\Plugins\ProfileConverter\GUI\CMD.cs 52 IntelliSense Active
- Message IDE0067 Disposable object created by 'new OpenFileDialog()
- {
- Filter = "XML files (*.xml)|*.xml"
- }' is never disposed ProfileConverter C:\Users\mouse\source\repos\ZzukBot4-master\Plugins\ProfileConverter\GUI C:\Users\mouse\source\repos\ZzukBot4-master\Plugins\ProfileConverter\GUI\CMD.cs 26 IntelliSense Active
- Use recommended dispose pattern to ensure that locally scoped disposable objects are disposed on all paths. If possible, wrap the creation within a 'using' statement or a 'using' declaration. Otherwise, use a try-finally pattern, with a dedicated local variable declared before the try region and an unconditional Dispose invocation on non-null value in the 'finally' region, say 'x?.Dispose()'. If the object is explicitly disposed within the try region or the dispose ownership is transfered to another object or method, assign 'null' to the local variable just after such an operation to prevent double dispose in 'finally'
Advertisement
Add Comment
Please, Sign In to add comment