Show / Hide Table of Contents

Class DirtyItemGatherer

Create a list of all a model's items that have been changed.

Inheritance
object
VersionableVisitorBase
DirtyItemGatherer
Implements
IVersionableVisitor
Inherited Members
VersionableVisitorBase.depth
VersionableVisitorBase.HaveVisited(IVersionable)
VersionableVisitorBase.RegisterVisit(IVersionable)
VersionableVisitorBase.EndVisitItem(IVersionable)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class DirtyItemGatherer : VersionableVisitorBase, IVersionableVisitor

Constructors

DirtyItemGatherer()

Initializes a new instance of the DirtyItemGatherer class.

Declaration
public DirtyItemGatherer()

DirtyItemGatherer(bool)

Initializes a new instance of the DirtyItemGatherer class.

Declaration
public DirtyItemGatherer(bool gatherEvenIfNotDirty)
Parameters
Type Name Description
bool gatherEvenIfNotDirty

if set to true gather items even if not dirty.

DirtyItemGatherer(bool, bool)

Initializes a new instance of the DirtyItemGatherer class.

Declaration
public DirtyItemGatherer(bool gatherEvenIfNotDirty, bool markParentsDirty)
Parameters
Type Name Description
bool gatherEvenIfNotDirty

if set to true gather items even if they are not dirty.

bool markParentsDirty

if set to true, mark parents of a dirty item to be dirty as well.

Properties

DirtyItems

The list of items in the model that have been changed.

Declaration
public Collection<IVersionable> DirtyItems { get; }
Property Value
Type Description
Collection<IVersionable>

Methods

BeginVisitItem(IVersionable)

Begins the visit item.

Declaration
public override void BeginVisitItem(IVersionable item)
Parameters
Type Name Description
IVersionable item

The item.

Overrides
VersionableVisitorBase.BeginVisitItem(IVersionable)

Implements

IVersionableVisitor

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX