StringUtilParseArrayT Method (String, T) |
Convert a comma delimited string to an array of generic values
Namespace:
Nova.Utilities
Assembly:
Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax public static T[] ParseArray<T>(
this string thisStr,
T[] defaultValues
)
where T : IConvertible
Parameters
- thisStr
- Type: SystemString
The string to parse. - defaultValues
- Type: T
The values to return if parsing fails
Type Parameters
- T
- The generic type.
Return Value
Type:
TAn array of generic values
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also