Click or drag to resize

collectionExtensionswriteIndexOutOfT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Writes the index out of.

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static string writeIndexOutOf<T>(
	this IList<T> source,
	T item,
	string format = "[{0}/{1}]"
)
where T : class
Request Example View Source

Parameters

source
Type: System.Collections.GenericIListT
The source.
item
Type: T
The item.
format (Optional)
Type: SystemString
The format.

Type Parameters

T

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IListT. 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