Vb.net/C# make classes store value types -


i need declare class properties stored value types. need make class inheritable, can't make structure.

class myclass ... end class  class inheritingclass inherits myclass ... end class 

is there other way without converting structure , using interfaces? (example below)

structure mystructure implements myinterface ... end structure  structure inheritingstructure implements myinterface ... end structure  interface myinterface ... end interface 

ps: can post answer in c# if don't know vb

if need type value-type, there no other way making struct.

maybe, if give more context, leading question, might find better solution actual problem.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -