Click or drag to resize
Tesco SW, a.s.

SupportMethodsSwapTwoMembersOfListT Method

Prohodí 2 elementy v listu

Namespace:  TescoSW.MW.UITests.Common
Assembly:  TescoSW.MW.UITests.Common (in TescoSW.MW.UITests.Common.dll) Version: 21.2.8103.33088
Syntax
C#
public static void SwapTwoMembersOfList<T>(
	this IList<T> source,
	int firstIndex,
	int secondIndex
)

Parameters

source
Type: System.Collections.GenericIListT
Původní list
firstIndex
Type: SystemInt32
První index elementu, který se prohazuje
secondIndex
Type: SystemInt32
Druhý index elementu, který se prohazuje

Type Parameters

T
Typ prvků v listu

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