StringExtensions.ToGuidArray method
Version 1.1.28
.NET Framework 4.8
| Namespace | Skybrud.Essentials.Strings.Extensions |
|---|---|
| Assembly | Skybrud.Essentials.dll |
ToGuidArray(string)
Extension method
Parses a string of multiple GUIDs into an array of Guid . Supported separators are
comma (,), space (), carriage return (\r), new line (\n) and tab (\t).
Values in str that can't be converted to Guid will be ignored.
public static Guid[] ToGuidArray(this string str)
Parameters
str
String
The string containing the GUIDs.
ToGuidArray(string, Char[])
Extension method
Parses string of multiple GUIDs into an array of Guid , using the specified array of
separators.
Values in str that can't be converted to Guid will be ignored.
public static Guid[] ToGuidArray(this string str, Char[] separators)