CollectionExtensionsLoadDelimitedStringTSource(IListTSource, String, FuncString, TSource) Method
Appends items parsed from delimited string, created with ToDelimitedString, using the default
delimiter ("|") 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,
Func<string, TSource> convertFromString
)
<ExtensionAttribute>
Public Shared Sub LoadDelimitedString(Of TSource) (
destination As IList(Of TSource),
delimitedString As String,
convertFromString As Func(Of String, TSource)
)
public:
[ExtensionAttribute]
generic<typename TSource>
static void LoadDelimitedString(
IList<TSource>^ destination,
String^ delimitedString,
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.
- convertFromString FuncString, TSource
- Delegate that takes one parameter and converts from string 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.