Click or drag to resize

DefinitionalObjectCollectionItemsAreSameDefinitionT Method (IEnumerableT, IEnumerableT)

Determines if two collections contain items with the same definition and in the same order, or are both .

Namespace:  AGI.Foundation.Infrastructure
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax
public static bool CollectionItemsAreSameDefinition<T>(
	IEnumerable<T> first,
	IEnumerable<T> second
)

Parameters

first
Type: System.Collections.GenericIEnumerableT
The first collection, which may be .
second
Type: System.Collections.GenericIEnumerableT
The second collection, which may be .

Type Parameters

T
The type of the items in the collections.

Return Value

Type: Boolean
if the two collections contain items with the same definition and in the same order; otherwise .
Remarks
If the items in the collection implement IEquatableDefinition, this method will use IsSameDefinition(Object) to compare them. Otherwise, it will use Equals(Object, Object).
See Also