Answered by:
IDisposable, IComponent, Component, MarshalByValueComponent

Question
-
Hello,
I do have a hard time to understand these concepts. There are MSDN definitions though, but I am unable to find the "Hello World" tutorials for them. Are they for windows application or web application or web service?
Thanks.
Monday, November 5, 2012 7:45 PM
Answers
-
Hi Ardmore,
Welcome to the MSND Forum.
When you implement the IDisposable interface, that means the GC will can your dispose method to release the resource.
The IComponent interface means the class can be a component.
Here is a blog which is related to this topic, take a look at it, please: http://blogs.msdn.com/b/atverma/archive/2010/08/01/how-to-choose-between-idisposable-icomponent-component-marshalbyvaluecomponent-and-control-while-implementing-a-class.aspx
Thank you.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by ardmore Wednesday, November 7, 2012 1:01 PM
Tuesday, November 6, 2012 11:28 AM
All replies
-
Hi Ardmore,
Welcome to the MSND Forum.
When you implement the IDisposable interface, that means the GC will can your dispose method to release the resource.
The IComponent interface means the class can be a component.
Here is a blog which is related to this topic, take a look at it, please: http://blogs.msdn.com/b/atverma/archive/2010/08/01/how-to-choose-between-idisposable-icomponent-component-marshalbyvaluecomponent-and-control-while-implementing-a-class.aspx
Thank you.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by ardmore Wednesday, November 7, 2012 1:01 PM
Tuesday, November 6, 2012 11:28 AM -
So it is for asp net?Tuesday, November 6, 2012 1:08 PM
-
Hi Ardmore,
It is the same in Winform, WPF and so on, they are similar, not only asp.net.
Best regards,
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Wednesday, November 7, 2012 6:08 AM