Click or drag to resize

StringUtilsSplitTagString Method

Split a tag string into its constituent name/value pairs.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static NameValueCollection SplitTagString(
	string tags,
	bool defaultToTagName
)

Parameters

tags
Type: SystemString
The tag string to split.
defaultToTagName
Type: SystemBoolean
If specified, any tag having a name but no value specified will use the name as the value for that tag.

Return Value

Type: NameValueCollection
The name/value collection which may be empty but is guaranteed to be non-null.
Remarks
A tag string takes the form name1=val1;name2=val2;... The name/value pairs are delimited by semi-colons and each name/value is separated by an equals sign. All leading and trailing whitespace are trimmed for both name and value.
See Also