Class CompositeObjectListUtilities
Contains utilities for CompositeObjectList<TObject>.
Inheritance
System.Object
CompositeObjectListUtilities
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public static class CompositeObjectListUtilities
Methods
Transform<T>(IEnumerable<T>, IReadOnlyDictionary<String, String>)
Replaces keys in System.Collections.Generic.IEnumerable<T>.
Declaration
public static ICompositeObjectList<ICompositeObject> Transform<T>(this IEnumerable<T> source, IReadOnlyDictionary<string, string> keyMap)
where T : class, ICompositeObject
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | source | Source System.Collections.Generic.IEnumerable<T>. |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.String> | keyMap | Map of keys to transform. |
Returns
Type | Description |
---|---|
ICompositeObjectList<ICompositeObject> | New instance of ICompositeObjectList<TObject> with new keys. |
Type Parameters
Name | Description |
---|---|
T | Type of contains object. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Throws if keyMap is |