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: 2.2.0.4 (2.2.0.4)
Syntax
[SerializableAttribute]
public class InfiniteList<T> : ISerializable
where T : ICloneable

Type Parameters

T
type of items in the list.

The InfiniteListT type exposes the following members.

Constructors
  NameDescription
Public methodInfiniteListT(ListT)
Initializes a new instance of the InfiniteListT class. create a new infinite list.
Public methodInfiniteListT(InfiniteListT)
Initializes a new instance of the InfiniteListT class. copy constructor.
Protected methodInfiniteListT(SerializationInfo, StreamingContext)
Initializes a new instance of the InfiniteListT class. Deserialize InfiniteList.
Public methodInfiniteListT(T, Int32)
Initializes a new instance of the InfiniteListT class. create a new infinite list.
Top
Properties
  NameDescription
Public propertyDefaultItem
Gets or sets the default item of the list.
Public propertyItem
returns item of given index.
Public propertyItems
Gets 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.)
Protected methodGetObjectData
Serialize MeshLoad.
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