Click or drag to resize

ExtensionsItemwiseCompareT Method

Compares two sublists item wise.

Namespace: RAYLASE.Shared
Assembly: RAYLASE.Shared (in RAYLASE.Shared.dll) Version: 2.19.0
Syntax
C#
public static bool ItemwiseCompare<T>(
	this IList<T> list1,
	int list1StartIndex,
	IList<T> list2,
	int list2StartIndex,
	int count
)
where T : class

Parameters

list1  IListT
The first list.
list1StartIndex  Int32
The offset of the sublist inside the first list.
list2  IListT
The second list.
list2StartIndex  Int32
The offset of the sublist inside the second list.
count  Int32
The length of the sublist.

Type Parameters

T
The type of the item.

Return Value

Boolean
True if all items in the two sublists match.

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