Search Results for

    Show / Hide Table of Contents

    Class CloneExtensions

    Extension methods for cloning

    Inheritance
    object
    CloneExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Infrastructure.Extensions
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    public static class CloneExtensions

    Methods

    | Edit this page View Source

    Clone(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

    | Edit this page View Source

    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

    | Edit this page View Source

    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

    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.