Interface ICollectionProperty<TContainer, TValue>
Syntax
public interface ICollectionProperty<TContainer, TValue> : IProperty<TContainer, TValue>, IProperty
Type Parameters
Name |
Description |
TContainer |
|
TValue |
|
Methods
Clear(ref TContainer)
Removes all elements from the collection.
Declaration
void Clear(ref TContainer container)
Parameters
Type |
Name |
Description |
TContainer |
container |
|
GetCount(ref TContainer)
Gets the number of elements contained in the collection.
Declaration
int GetCount(ref TContainer container)
Parameters
Type |
Name |
Description |
TContainer |
container |
|
Returns
GetPropertyAtIndex<TGetter>(ref TContainer, Int32, ref ChangeTracker, ref TGetter)
Gets the strongly typed element at the specified index.
Declaration
void GetPropertyAtIndex<TGetter>(ref TContainer container, int index, ref ChangeTracker changeTracker, ref TGetter getter)
where TGetter : ICollectionElementPropertyGetter<TContainer>
Parameters
Type |
Name |
Description |
TContainer |
container |
|
Int32 |
index |
|
ChangeTracker |
changeTracker |
|
TGetter |
getter |
|
Type Parameters
SetCount(ref TContainer, Int32)
Sets the number of elements contained in the collection.
Declaration
void SetCount(ref TContainer container, int count)
Parameters
Type |
Name |
Description |
TContainer |
container |
|
Int32 |
count |
|