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; }
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; }