CsvRecordTryGetValue Method

Tries to get the value associated with the specified column name in the CSV file.

Definition

Namespace: FolkerKinzel.CsvTools
Assembly: FolkerKinzel.CsvTools (in FolkerKinzel.CsvTools.dll) Version: 2.0.1+2345335399184346d9b2cc992ed5c814406052c1
C#
public bool TryGetValue(
	string columnName,
	out ReadOnlyMemory<char> value
)

Parameters

columnName  String
The column name in the CSV file whose value is being obtained.
value  ReadOnlyMemoryChar
After the method has finished, the argument contains the value associated with the column name specified with columnName if the key was found, or null otherwise. The parameter is passed uninitialized.

Return Value

Boolean
true if it contains a column name with the value of columnName, otherwise false.

Exceptions

ArgumentNullExceptioncolumnName is null.

See Also