Exemplo n.º 1
0
 public Value(Number num)
 {
     // initialisation order is important because String and number fields overlap!
     // The string must be set before the number overwrites it!
     _string = default;
     _number = num;
     _type   = Type.Number;
 }
Exemplo n.º 2
0
 public Value(YString str)
 {
     // initialisation order is important because String and number fields overlap!
     // The number must be set before the string overwrites it!
     _number = default;
     _string = str;
     _type   = Type.String;
 }