ExtendedListT Class

A list that behaves as if it were infinitely long: when reading an item beyond the last element the last element is returned when writing an item beyond the last element the last element is copied until the new position is reached the copies are shallow copies. The difference to InfiniteList is the handling of default values.

Definition

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

Type Parameters

T
Class of the items in the list.

Constructors

ExtendedListT(ExtendedListT) Initializes a new instance of the ExtendedListT class. copy constructor.
ExtendedListT(Int32) Initializes a new instance of the ExtendedListT class. create new extended list.
ExtendedListT(ListT) Initializes a new instance of the ExtendedListT class. new ExtendedList filled with elements of another list.
ExtendedListT(T, Int32) Initializes a new instance of the ExtendedListT class. create new ExtendedList.
ExtendedListT(SerializationInfo, StreamingContext) Initializes a new instance of the ExtendedListT class. Deserialize MeshLoad.

Properties

DefaultItem Gets the the current default item.
Item item of given index.
Items Gets or sets 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)
TryGet try to get an item at index ind.

Extension Methods

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

See Also