21 references to FieldType
Microsoft.Data.Analysis.Tests (21)
src\Microsoft.Data.Analysis\TextFieldParser.cs (14)
137private FieldType _textFieldType = FieldType.Delimited; 233public FieldType TextFieldType 434case FieldType.FixedWidth: 436case FieldType.Delimited: 519private void ValidateFieldTypeEnumValue(FieldType value, string paramName) 521if (value < FieldType.Delimited || value > FieldType.FixedWidth) 523throw new InvalidEnumArgumentException(paramName, (int)value, typeof(FieldType)); 1029case FieldType.Delimited: 1032case FieldType.FixedWidth: 1044if (token != string.Empty && (_hasFieldsEnclosedInQuotes && (_textFieldType == FieldType.Delimited)) && string.Compare(token.Trim(), "\"", StringComparison.Ordinal) == 0) 1078case FieldType.Delimited: 1098case FieldType.FixedWidth:
TextFieldParserTests.cs (7)
119Assert.Equal(FieldType.Delimited, parser.TextFieldType); 120parser.TextFieldType = FieldType.FixedWidth; 121Assert.Equal(FieldType.FixedWidth, parser.TextFieldType); 183parser.TextFieldType = FieldType.FixedWidth; 261parser.TextFieldType = FieldType.FixedWidth; 268parser.TextFieldType = FieldType.Delimited; 289parser.TextFieldType = FieldType.FixedWidth;