I would like to define new 'simple' types like this (in delphi):
type
TString2 = string[2];
TString10 = string[10];
TYesNo = (isNull=-1, isNo=0, isYes=1);
TBit2 = 0..3;
And then, use that inside my class-fields, like this (in delphi again):
TCMDchild = class(TCMDParent)
strict protected
fSgMrMs: TString2;
fSgIsMale: TYesNo;
fSgValue1: TBit2;
......
¿ Are there any way to get the same easy "simple type construction" in C# (VS2010) ?
Thanks for your comments.