Class LinkCollection<T, TLink, TCollection\>
Last update: 16.07.2025Namespace: VM.Managed.Collections
Assembly: VMAppCore.dll
public class LinkCollection<t tcollection> : ILinkCollection, IPostDeserialized where T : class where TLink : class, ITypedLink<t> where TCollection : ICollection<tlink>, new()
Type Parameters
T
TLink
TCollection
Inheritance
Implements
ILinkCollection, IPostDeserialized
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
LinkCollection(ILinkContainer)
public LinkCollection(ILinkContainer objParent)
Parameters
objParent ILinkContainer
LinkCollection(ILinkContainer, TCollection)
public LinkCollection(ILinkContainer objParent, TCollection collection)
Parameters
objParent ILinkContainer
collection TCollection
Fields
m_collection
protected TCollection m_collection
Field Value
TCollection
m_ehCollectionChanged
protected NotifyCollectionChangedEventHandler m_ehCollectionChanged
Field Value
NotifyCollectionChangedEventHandler
m_objLinkOwner
protected ILinkContainer m_objLinkOwner
Field Value
ILinkContainer
m_syncLock
protected object m_syncLock
Field Value
Properties
Count
public virtual int Count { get; }
Property Value
IsReadOnly
public virtual bool IsReadOnly { get; }
Property Value
Methods
Add(T)
public virtual void Add(T item)
Parameters
item T
Add(T, bool)
public virtual void Add(T item, bool bContainsDocument)
Parameters
item T
bContainsDocument bool
AddDestroyEvent(TLink)
protected void AddDestroyEvent(TLink obj)
Parameters
obj TLink
Clear()
public virtual void Clear()
Clear(bool)
public virtual void Clear(bool bContainsDocument)
Parameters
bContainsDocument bool
Contains(T)
public virtual bool Contains(T item)
Parameters
item T
Returns
CopyTo(T[], int)
public virtual void CopyTo(T[] ar, int arrayIndex)
Parameters
ar T[]
arrayIndex int
GetEnumerator()
public virtual IEnumerator<t> GetEnumerator()
Returns
GetEnumeratorImpl()
IEnumerator GetEnumeratorImpl()
Returns
Remove(T)
public virtual bool Remove(T item)
Parameters
item T
Returns
Remove(T, bool)
public virtual bool Remove(T item, bool bContainsDocument)
Parameters
item T
bContainsDocument bool
Returns
SetModified(ModifiedType, bool)
public void SetModified(ModifiedType modifiedType, bool bContainsDocument)
Parameters
modifiedType ModifiedType
bContainsDocument bool
SimpleValueModifiedForCollection(ModifiedType)
protected void SimpleValueModifiedForCollection(ModifiedType modifiedType)
Parameters
modifiedType ModifiedType
SimpleValueModifiedForCollection(ModifiedType, bool)
protected void SimpleValueModifiedForCollection(ModifiedType modifiedType, bool bContainsDocument)
Parameters
modifiedType ModifiedType
bContainsDocument bool
raise_CollectionChanged(object, NotifyCollectionChangedEventArgs)
public void raise_CollectionChanged(object objNotifier, NotifyCollectionChangedEventArgs e)
Parameters
objNotifier object
e NotifyCollectionChangedEventArgs
CollectionChanged
public event NotifyCollectionChangedEventHandler CollectionChanged