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.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
[SerializableAttribute]
public class InfiniteList<T> : ISerializable
where T : ICloneable
Inheritance
Object    InfiniteListT
Implements
ISerializable

Type Parameters

T
type of items in the list.

Constructors

InfiniteListT(InfiniteListT) Initializes a new instance of the InfiniteListT class. copy constructor.
InfiniteListT(ListT) Initializes a new instance of the InfiniteListT class. create a new infinite list.
InfiniteListT(T, Int32) Initializes a new instance of the InfiniteListT class. create a new infinite list.
InfiniteListT(SerializationInfo, StreamingContext) Initializes a new instance of the InfiniteListT class. Deserialize InfiniteList.

Properties

DefaultItem Gets or sets the default item of the list.
Item returns item of given index.
Items Gets the underlying list of items.

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetObjectData Serialize MeshLoad.
GetType Gets the Type of the current instance.
(Inherited from Object)
ItemIndex return the index of an item in the underlying list based on the index of the item in the infinite list.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)

See Also