Click or drag to resize

WeakReferenceListBaseT Class

List with an Id containing object Ids ordered by index.
Inheritance Hierarchy

Namespace:  VelocityDb.Collection
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
[SerializableAttribute]
public abstract class WeakReferenceListBase<T> : OptimizedPersistable, 
	IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
where T : IOptimizedPersistable

Type Parameters

T
The type of objects contained in this kind of list

The WeakReferenceListBaseT type exposes the following members.

Properties
  NameDescription
Public propertyCount
Number of items in list
Public propertyIsFixedSize
Always false
Public propertyIsReadOnly
Always false
Public propertyIsSynchronized
Always false
Public propertyItem
Gets or sets an item at a certain index
Public propertySyncRoot
Used for thread safety
Top
Methods
  NameDescription
Public methodAdd
Adds an item to a list
Public methodAddRange
Adds the elements of the given collection to the end of this list.
Public methodBinarySearch
Searches the entire sorted list for an element using the default comparer and returns the zero-based index of the element.
Public methodClear
Removes all items from the list and frees the array
Public methodClearAndUnpersistContainedObjects
Removes all items from the list and unpersists all contained objects
Public methodContains
Checks if an item is contained in the list
Public methodCopyTo(Array, Int32)
Copies list to an array
Public methodCopyTo(T, Int32)
Copies list items to an array
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodIndexOf
Finds the first index of an item
Public methodInsert
Inserts an item at a specified index
Public methodInsertRange
Inserts the elements of the given collection at a given index.
Public methodLast
Get the value at the last position in the list
Public methodPersist
Persists this object. Override in your subclasses when you want fields of your class to be persisted in some special way.
(Overrides OptimizedPersistablePersist(Placement, SessionBase, Boolean, Boolean, QueueIOptimizedPersistable).)
Public methodRemove
Remove an item
Public methodRemoveAt
Removes an item at a specified index
Public methodRemoveRange
Removes a range of items
Public methodUnpersist
Removes an object from the persistent store and makes the object a transient object. It does not automatically make referenced objects unpersisted. Best way to do so is to override this virtual function in your own classes.
(Overrides OptimizedPersistableUnpersist(SessionBase).)
Top
Extension Methods
See Also