Class CloneExtensions
Extension methods for cloning
Inherited Members
Namespace: FluentMigrator.Infrastructure.Extensions
Assembly: FluentMigrator.Abstractions.dll
Syntax
public static class CloneExtensions
Methods
| Edit this page View SourceClone(IEnumerable<KeyValuePair<string, object>>)
Clones all key/value pairs
Declaration
public static Dictionary<string, object> Clone(this IEnumerable<KeyValuePair<string, object>> dict)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<string, object>> | dict | The key value pairs to clone |
Returns
Type | Description |
---|---|
Dictionary<string, object> | The cloned key/value pairs |
CloneAll<T>(IEnumerable<T>)
Clones all items
Declaration
public static IEnumerable<T> CloneAll<T>(this IEnumerable<T> items) where T : ICloneable
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | items | The items to clone |
Returns
Type | Description |
---|---|
IEnumerable<T> | The cloned items |
Type Parameters
Name | Description |
---|---|
T | The item type |
CloneTo(IEnumerable<KeyValuePair<string, object>>, IDictionary<string, object>)
Clones the values of dict
and stores them into target
Declaration
public static void CloneTo(this IEnumerable<KeyValuePair<string, object>> dict, IDictionary<string, object> target)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<KeyValuePair<string, object>> | dict | The key/value pairs to clone |
IDictionary<string, object> | target | The target dictionary to store the cloned key/value pairs |