Method SplitExtensionField
SplitExtensionField(String, String)
Splits a extension field and returns the field / extension part as a Tuple{string,string}. This method tries to split on the first occurrence of the extension field delimiter, if the delimiter is not present in the string the result will contain a
null
value for the extension key and
the given field string as the field value. If the given extension field
string contains no field identifier the result pair will carry the given
default field as the field value.
Declaration
public virtual Tuple<string, string> SplitExtensionField(string defaultField, string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | defaultField | the default query field |
System.String | field | the extension field string |
Returns
Type | Description |
---|---|
System.Tuple<System.String, System.String> | a {System.Tuple<T1, T2> with the field name as the System.Tuple`2.Item1 and the extension key as the System.Tuple`2.Item2 |