If the discriminated union case doesn't have any payload, there is no NewXXX
method generated. Because all instances of such union case will be the same and there is no need in creation function. So use staic properties instead
Argument.IntValue
Argument.FloatValue
Internally these properties just return singleton instance of corresponding usecase:
internal static readonly Argument _unique_IntValue = new _IntValue();
public static Argument IntValue => _unique_IntValue;
More interesting details can be observed in this decompiled snippet.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…