Click here to Skip to main content
14,983,791 members
Home / Discussions / C#
   

C#

 
QuestionDisappearing expand indicators on PropertyGrid Pin
rbuchana31-Jul-08 6:00
Memberrbuchana31-Jul-08 6:00 
AnswerRe: Disappearing expand indicators on PropertyGrid Pin
Thomas Stockwell31-Jul-08 6:31
professionalThomas Stockwell31-Jul-08 6:31 
GeneralRe: Disappearing expand indicators on PropertyGrid [modified] Pin
rbuchana31-Jul-08 6:41
Memberrbuchana31-Jul-08 6:41 
GeneralRe: Disappearing expand indicators on PropertyGrid Pin
Thomas Stockwell31-Jul-08 6:48
professionalThomas Stockwell31-Jul-08 6:48 
GeneralRe: Disappearing expand indicators on PropertyGrid Pin
rbuchana31-Jul-08 7:15
Memberrbuchana31-Jul-08 7:15 
QuestionDo I need to check this.Disposed inside my get/set for properties, too? Pin
JoeRip31-Jul-08 5:07
MemberJoeRip31-Jul-08 5:07 
GeneralRe: Do I need to check this.Disposed inside my get/set for properties, too? Pin
Simon P Stevens31-Jul-08 22:03
MemberSimon P Stevens31-Jul-08 22:03 
AnswerRe: Do I need to check this.Disposed inside my get/set for properties, too? Pin
PIEBALDconsult1-Aug-08 6:09
professionalPIEBALDconsult1-Aug-08 6:09 
And then what do you do if the instance has been Disposed?


"
The primary use of this interface is to release unmanaged resources.
"

When a class doesn't directly use unmanaged resources or a resource that implements IDisposable, then I generally don't implement IDisposable on it. However, implementing IDisposble allows for the class' use in a using statement which is a very handy technique, so in some cases I may implement a Dispose method that does nothing or otherwise leaves the instance in a usable state.

So I don't bother with tracking whether or not Dispose has been called on the instance.
If Dispose has released some resource, then generally the instance's reference will be null and I can check that and either make a new instance or throw an Exception, as appropriate.
AnswerRe: Do I need to check this.Disposed inside my get/set for properties, too? Pin
Scott Dorman2-Aug-08 15:16
professionalScott Dorman2-Aug-08 15:16 
QuestionCadLib for creating DXF(Drawing Interchange Format) files in C# Pin
Muralikumar7631-Jul-08 4:46
MemberMuralikumar7631-Jul-08 4:46 
AnswerRe: CadLib for creating DXF(Drawing Interchange Format) files in C# Pin
Simon P Stevens31-Jul-08 4:55
MemberSimon P Stevens31-Jul-08 4:55 
GeneralRe: CadLib for creating DXF(Drawing Interchange Format) files in C# Pin
Muralikumar7631-Jul-08 21:04
MemberMuralikumar7631-Jul-08 21:04 
GeneralRe: CadLib for creating DXF(Drawing Interchange Format) files in C# Pin
Simon P Stevens1-Aug-08 2:21
MemberSimon P Stevens1-Aug-08 2:21 
QuestionAlternating Row colors in a VS 2008 .rdlc table Pin
AeonBlue31-Jul-08 3:57
MemberAeonBlue31-Jul-08 3:57 
AnswerRe: Alternating Row colors in a VS 2008 .rdlc table Pin
AeonBlue4-Aug-08 9:10
MemberAeonBlue4-Aug-08 9:10 
Questioncoding for a login class in C# Pin
halalalal31-Jul-08 3:15
Memberhalalalal31-Jul-08 3:15 
AnswerRe: coding for a login class in C# Pin
Eduard Keilholz31-Jul-08 3:19
MemberEduard Keilholz31-Jul-08 3:19 
AnswerRe: coding for a login class in C# Pin
Vimalsoft(Pty) Ltd31-Jul-08 4:21
professionalVimalsoft(Pty) Ltd31-Jul-08 4:21 
QuestionGet mimetype of a file Pin
katze031-Jul-08 3:09
Memberkatze031-Jul-08 3:09 
AnswerRe: Get mimetype of a file Pin
#realJSOP31-Jul-08 3:56
mva#realJSOP31-Jul-08 3:56 
AnswerRe: Get mimetype of a file Pin
User 665831-Jul-08 4:04
MemberUser 665831-Jul-08 4:04 
GeneralRe: Get mimetype of a file Pin
katze031-Jul-08 9:20
Memberkatze031-Jul-08 9:20 
GeneralRe: Get mimetype of a file Pin
User 665831-Jul-08 11:09
MemberUser 665831-Jul-08 11:09 
GeneralRe: Get mimetype of a file Pin
katze04-Aug-08 9:22
Memberkatze04-Aug-08 9:22 
Questionadd vb.net mocule in c# Pin
D. PAUL31-Jul-08 2:27
MemberD. PAUL31-Jul-08 2:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.