Is there any point at all on inheriting from Type class in .Net?
i.e. What could be the meaning of doing so?
I am asking this because of this text in MSDN documentation:
Notes to Inheritors When you inherit from Type, you must override
the following members… list of
members.
MSDN doc for Type: http://msdn.microsoft.com/en-us/library/system.type.aspx
ok, that is actually saying that anyone can inherit from Type… but they dont say why would you ever want to do that.
Thanks!
It all depends on what you are doing.
Here is one case. Maybe I need extra functionality on the Type class for use in my application at some point, lets say for logging. However then I need to pass it to a function that is expecting just the
Type. I can pass my inherited class to that funciton without callingMyObject.GetType();