Idea:- Pseudo-Inherit? OK we traditionally can't inherit from a Structure (struct in C#), but what if the compiler did support a kind of basic inheritance, especially over the basic types. Eg Integer and Double? This isn't true inheritance as any place you can use and Integer you can not use one of these structure inherited objects. For Example. If I write the following code (reusing the keyword Inherits. Public Structure Miles Inherits Integer End Structure The compiler actually creates something like the following. Public Structure Miles Implements IComparable(Of Miles) Private _Value As Integer Public Default ReadOnly Property Value As Integer Get ...


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials