Class KeyItemCollectionExtensions
- Namespace
- Loehnert.TypeAndResult
- Assembly
- Loehnert.TypeAndResult.dll
Extensions for KeyItemCollection<T>.
public static class KeyItemCollectionExtensions
- Inheritance
-
KeyItemCollectionExtensions
- Inherited Members
Methods
ApplyIds<T>(KeyItemCollection<T>, KeyItemCollection<T>)
Applies all ID from sourceItems to targetItems.
See ApplyID(T).
public static void ApplyIds<T>(this KeyItemCollection<T> targetItems, KeyItemCollection<T> sourceItems) where T : EntityBase, IHasKey, IEquatable<T>, ICanApplyID<T>
Parameters
targetItemsKeyItemCollection<T>A collection that contains the target items.
sourceItemsKeyItemCollection<T>A collection that contains the source items.
Type Parameters
TThe type of objects to apply the ID.
Exceptions
- InvalidOperationException
Thrown when
targetItemsdoesn't equals withsourceItems.- ArgumentNullException
Thrown when
sourceItemsortargetItemsisnull.