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