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
Assembly: Umbraco.Core.dll
Syntax
public class DeepCloneableList<T> : List<T>, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Type Parameters
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
View Source
DeepCloneableList(ListCloneBehavior)
Declaration
public DeepCloneableList(ListCloneBehavior listCloneBehavior)
Parameters
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> |
|
View Source
GetWereDirtyProperties()
Declaration
public IEnumerable<string> GetWereDirtyProperties()
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
IsDirty()
Declaration
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 |
|
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
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 |
|
Events
View Source
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|