I know about IDisposable
Interface and it's use in .net but there is a question in my mind that If i am writing all managed code , does implementing IDisposable
interface make any sense?
i know when and how to use Idisposible but my question is if i am writing all managed code say a simple class nothing expensive in it so if i implement IDisposable
in this class and do some cleanup like freeing some global values, Does it make some sense?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…