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

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

qt - Change color of QGraphicsView rubber band -

c++ - Visible files in the "Projects" View of the Qt Creator IDE if using the CMake build system -