public static Variable Create(string name, string?label, FormatType formatType, int spssWidth, int decimalPlaces) { if (formatType == FormatType.A) { return new Variable <string>(name, spssWidth, decimalPlaces) { Label = label } } ; if (formatType.IsDate()) { return new Variable <DateTime>(name, spssWidth, decimalPlaces) { Label = label } } ; return(new Variable <double>(name, spssWidth, decimalPlaces) { Label = label }); } }