Click here to Skip to main content
15,949,686 members

Comments by charles henington (Top 200 by date)

charles henington 12-Jul-24 14:56pm View    
+5
charles henington 12-Jul-24 14:10pm View    
To add to what Mariah Carey said, when you're disposing of a disposable object such as System.IO.Stream or System.Drawing.Bimap,
if you call dispose on an object that's already been disposed you will recieve an ObjectDisposedException. Once you dispose of the underlying object of your class, you can set disposedValue = true;
in Dispose() so that you know if the diposable object has already been disposed.
charles henington 12-Jul-24 13:57pm View    
+5
charles henington 4-Jul-24 21:02pm View    
What are your thoughts on making Json non human readable? If you had to choose between using a GZipStream or Encryption, which would you choose and why?
charles henington 4-Jul-24 19:26pm View    
Deleted
Could you not just use JsonSerializer.Serialize(Stream, obj); and JsonSerializer.Deseralize(Stream) instead?