DefinitionalObject.CollectionItemsAreSameDefinition<T> Method (IEnumerable<T>, IEnumerable<T>) |
Determines if two collections contain items with the same definition and in the same order,
or are both null.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic static bool CollectionItemsAreSameDefinition<T>(
IEnumerable<T> first,
IEnumerable<T> second
)
Public Shared Function CollectionItemsAreSameDefinition(Of T) (
first As IEnumerable(Of T),
second As IEnumerable(Of T)
) As Boolean
public:
generic<typename T>
static bool CollectionItemsAreSameDefinition(
IEnumerable<T>^ first,
IEnumerable<T>^ second
)
static member CollectionItemsAreSameDefinition :
first : IEnumerable<'T> *
second : IEnumerable<'T> -> bool
Parameters
- first
- Type: System.Collections.Generic.IEnumerable<T>
The first collection, which may be null. - second
- Type: System.Collections.Generic.IEnumerable<T>
The second collection, which may be null.
Type Parameters
- T
- The type of the items in the collections.
Return Value
Type:
Booleantrue if the two collections contain items with the same definition and in the
same order; otherwise
false.
Remarks
See Also