Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeepCloneableList<T>

    A List that can be deep cloned with deep cloned elements and can reset the collection's items dirty flags

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Collections
    Assembly: Umbraco.Core.dll
    Syntax
    public class DeepCloneableList<T> : List<T>, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
    Type Parameters
    Name Description
    T

    Constructors

    View Source

    DeepCloneableList(IEnumerable<T>)

    Default behavior is CloneOnce

    Declaration
    public DeepCloneableList(IEnumerable<T> collection)
    Parameters
    Type Name Description
    IEnumerable<T> collection
    View Source

    DeepCloneableList(IEnumerable<T>, ListCloneBehavior)

    Declaration
    public DeepCloneableList(IEnumerable<T> collection, ListCloneBehavior listCloneBehavior)
    Parameters
    Type Name Description
    IEnumerable<T> collection
    ListCloneBehavior listCloneBehavior
    View Source

    DeepCloneableList(ListCloneBehavior)

    Declaration
    public DeepCloneableList(ListCloneBehavior listCloneBehavior)
    Parameters
    Type Name Description
    ListCloneBehavior listCloneBehavior

    Methods

    View Source

    DeepClone()

    Creates a new list and adds each element as a deep cloned element if it is of type IDeepCloneable

    Declaration
    public object DeepClone()
    Returns
    Type Description
    System.Object
    View Source

    DisableChangeTracking()

    Declaration
    public void DisableChangeTracking()
    View Source

    EnableChangeTracking()

    Declaration
    public void EnableChangeTracking()
    View Source

    GetDirtyProperties()

    Gets properties that are dirty.

    Declaration
    public IEnumerable<string> GetDirtyProperties()
    Returns
    Type Description
    IEnumerable<System.String>
    Remarks

    Always return an empty enumerable, the list has no properties that can be dirty.

    View Source

    GetWereDirtyProperties()

    Declaration
    public IEnumerable<string> GetWereDirtyProperties()
    Returns
    Type Description
    IEnumerable<System.String>
    Remarks

    Always return an empty enumerable, the list has no properties that can be dirty.

    View Source

    IsDirty()

    Declaration
    public bool IsDirty()
    Returns
    Type Description
    System.Boolean
    View Source

    IsPropertyDirty(String)

    Determines whether a specific property is dirty.

    Declaration
    public bool IsPropertyDirty(string propName)
    Parameters
    Type Name Description
    System.String propName
    Returns
    Type Description
    System.Boolean
    Remarks

    Always return false, the list has no properties that can be dirty.

    View Source

    ResetDirtyProperties()

    Declaration
    public void ResetDirtyProperties()
    View Source

    ResetDirtyProperties(Boolean)

    Declaration
    public void ResetDirtyProperties(bool rememberDirty)
    Parameters
    Type Name Description
    System.Boolean rememberDirty
    View Source

    ResetWereDirtyProperties()

    Declaration
    public void ResetWereDirtyProperties()
    View Source

    WasDirty()

    Declaration
    public bool WasDirty()
    Returns
    Type Description
    System.Boolean
    View Source

    WasPropertyDirty(String)

    Determines whether a specific property was dirty.

    Declaration
    public bool WasPropertyDirty(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName
    Returns
    Type Description
    System.Boolean
    Remarks

    Always return false, the list has no properties that can be dirty.

    Events

    View Source

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DeepCloneableList(IEnumerable<T>)
      • DeepCloneableList(IEnumerable<T>, ListCloneBehavior)
      • DeepCloneableList(ListCloneBehavior)
    • Methods
      • DeepClone()
      • DisableChangeTracking()
      • EnableChangeTracking()
      • GetDirtyProperties()
      • GetWereDirtyProperties()
      • IsDirty()
      • IsPropertyDirty(String)
      • ResetDirtyProperties()
      • ResetDirtyProperties(Boolean)
      • ResetWereDirtyProperties()
      • WasDirty()
      • WasPropertyDirty(String)
    • Events
      • PropertyChanged
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX