CollectionExtensionsLoadDelimitedStringTSource(IListTSource, String, String, FuncString, TSource) Method
Appends items parsed from delimited string, created with ToDelimitedString, into the given list.
Namespace: Gemstone.Collections.CollectionExtensionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static void LoadDelimitedString<TSource>(
this IList<TSource> destination,
string delimitedString,
string[] delimiters,
Func<string, TSource> convertFromString
)
<ExtensionAttribute>
Public Shared Sub LoadDelimitedString(Of TSource) (
destination As IList(Of TSource),
delimitedString As String,
delimiters As String(),
convertFromString As Func(Of String, TSource)
)
public:
[ExtensionAttribute]
generic<typename TSource>
static void LoadDelimitedString(
IList<TSource>^ destination,
String^ delimitedString,
array<String^>^ delimiters,
Func<String^, TSource>^ convertFromString
)
JavaScript does not support generic types or methods.
- destination IListTSource
- The list we are adding items to.
- delimitedString String
- The delimited string to parse for items.
- delimiters String
- An array of delimiters to look for in the delimitedString as the delimiter.
- convertFromString FuncString, TSource
- Delegate that takes a String and converts to type TSource.
- TSource
- Type of IListT.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListTSource. 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).
Items that are converted are added to list. The list is not cleared in advance.