Click or drag to resize

StringParserFindIndex Method

Finds the index of the first matching (or containing) field name

Namespace: GSF.Parsing
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
public static int FindIndex(
	string fieldNameValueSought,
	string[] fieldNames,
	bool matchCase = true,
	bool contains = false
)
View Source

Parameters

fieldNameValueSought  String
the field name to find
fieldNames  String
the string array of fields
matchCase  Boolean  (Optional)
set to FALSE for case insensitive tests
contains  Boolean  (Optional)
Set to TRUE to find index that CONTAINS the fileNameValueSought

Return Value

Int32
See Also