Search Results for

    Show / Hide Table of Contents

    Interface ICloneableAsync<T>

    Indicates this class supports cloning an entire copy of itself typed to the correct type

    Namespace: LemonEdge.Utils.Interfaces
    Assembly: LemonEdge.Utils.dll
    Syntax
    public interface ICloneableAsync<T> where T : ICloneableAsync
    Type Parameters
    Name Description
    T

    The type of item that supports cloning

    Methods

    Clone(object)

    Creates a new instance of this class (of type T) with all the same property values as this instance

    Declaration
    Task<T> Clone(object context)
    Parameters
    Type Name Description
    object context

    A context item used for creating a new instance of this item. Can allow permission checks and other functionality.

    Returns
    Type Description
    Task<T>

    A task that creates new instance of this class with all the same property values as this instance

    CopyFromSource(T)

    Updates all properties in this item to have the same properties as the source object.

    Declaration
    void CopyFromSource(T source)
    Parameters
    Type Name Description
    T source

    The source object to copy all values from.

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    ICloneable
    ICloneable<T>
    ICloneableAsync
    IgnoreOnCloneAttribute
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.