arivera12 / OneLine

OneLine is a multiplatform, standardized, redefined framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Design a base class for user defined types

arivera12 opened this issue · comments

This class should:

  • Allow define new types
  • Allow define new type values
  • Allow implicit conversion from string values

This seems not to be possible the main idea was to design a base class which implements the internal methods and does the implicit conversion from string values. Also there are some static methods that needs to be implemented in the derived class rather than the base class. When ever you call the parent constructor the types are not defined in the base class son it will always throw an exception when trying to do the conversion from string values. In summary every defined type needs to be defined in the same class.