Click or drag to resize

InfiniteListT Class

A list that behaves as if it were infinitely long: when reading an item beyond the last element the default element is returned when writing an item beyond the last element the default element is copied until the new position is reached the copies are shallow copies the default value is always the last item in the list at initialization
Inheritance Hierarchy
SystemObject
  Karamba.UtilitiesInfiniteListT

Namespace:  Karamba.Utilities
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[SerializableAttribute]
public class InfiniteList<T>
where T : ICloneable

Type Parameters

T
type of items in the list

The InfiniteListT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyDefaultItem
the default item of the list
Public propertyItem
returns item of given index
Public propertyItems
access to the underlying list of items
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodItemIndex
return the index of an item in the underlying list based on the index of the item in the infinite list
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also