Click or drag to resize

ModelingListT Class

Represents a list of modeling objects.
Inheritance Hierarchy
SystemObject
  System.Collections.GenericListT
    Packflow.ModelingModelingListT

Namespace:  Packflow.Modeling
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public class ModelingList<T> : List<T>
where T : ModelingObject

Type Parameters

T

The ModelingListT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCapacity
Gets or sets the total number of elements the internal data structure can hold without resizing.
(Inherited from ListT.)
Public propertyCount (Inherited from ListT.)
Public propertyItem
Gets or sets a modeling object at the specified index.
Public propertyModel
Gets the model of the parent of this children list. The Model is the root object of this object tree.
Public propertyParent
Gets the modeling object hosting this list.
Top
Methods
  NameDescription
Public methodAdd
Adds a modeling object to the end of the list.
Public methodAddRange
Adds modeling objects of the specified collection to the end of the list.
Public methodAsReadOnly (Inherited from ListT.)
Public methodBinarySearch(T)
Searches the entire sorted ListT for an element using the default comparer and returns the zero-based index of the element.
(Inherited from ListT.)
Public methodBinarySearch(T, IComparerT)
Searches the entire sorted ListT for an element using the specified comparer and returns the zero-based index of the element.
(Inherited from ListT.)
Public methodBinarySearch(Int32, Int32, T, IComparerT)
Searches a range of elements in the sorted ListT for an element using the specified comparer and returns the zero-based index of the element.
(Inherited from ListT.)
Public methodClear
Removes and unbind all objects from the list.
Public methodContains (Inherited from ListT.)
Public methodConvertAllTOutput (Inherited from ListT.)
Public methodCopyTo(T) (Inherited from ListT.)
Public methodCopyTo(T, Int32) (Inherited from ListT.)
Public methodCopyTo(Int32, T, Int32, Int32)
Copies a range of elements from the ListT to a compatible one-dimensional array, starting at the specified index of the target array.
(Inherited from ListT.)
Public methodExists (Inherited from ListT.)
Protected methodFinalize
Finalizes an instance of the [!:ModelingList] class.
(Overrides ObjectFinalize.)
Public methodFind
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire ListT.
(Inherited from ListT.)
Public methodFindAll
Retrieves all the elements that match the conditions defined by the specified predicate.
(Inherited from ListT.)
Public methodFindIndex(PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire ListT.
(Inherited from ListT.)
Public methodFindIndex(Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ListT that extends from the specified index to the last element.
(Inherited from ListT.)
Public methodFindIndex(Int32, Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the ListT that starts at the specified index and contains the specified number of elements.
(Inherited from ListT.)
Public methodFindLast
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire ListT.
(Inherited from ListT.)
Public methodFindLastIndex(PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire ListT.
(Inherited from ListT.)
Public methodFindLastIndex(Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ListT that extends from the first element to the specified index.
(Inherited from ListT.)
Public methodFindLastIndex(Int32, Int32, PredicateT)
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the ListT that contains the specified number of elements and ends at the specified index.
(Inherited from ListT.)
Public methodForEach (Inherited from ListT.)
Public methodGetEnumerator (Inherited from ListT.)
Public methodGetRange (Inherited from ListT.)
Public methodGetUniqueName(String)
Gets an unique name for an object not yet added to list.
Public methodGetUniqueName(String, Int32)
Gets an unique name for an object already hosted by the list.
Public methodIndexOf(T) (Inherited from ListT.)
Public methodIndexOf(T, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ListT that extends from the specified index to the last element.
(Inherited from ListT.)
Public methodIndexOf(T, Int32, Int32)
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the ListT that starts at the specified index and contains the specified number of elements.
(Inherited from ListT.)
Public methodInsert
Inserts a modeling object in the list at a specified index.
Public methodInsertRange
Inserts modeling objects in the list at a specified index.
Public methodLastIndexOf(T) (Inherited from ListT.)
Public methodLastIndexOf(T, Int32)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListT that extends from the first element to the specified index.
(Inherited from ListT.)
Public methodLastIndexOf(T, Int32, Int32)
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the ListT that contains the specified number of elements and ends at the specified index.
(Inherited from ListT.)
Public methodOrderByName
Returns an enumerable of the list, ordered by objects' names.
Public methodRemove(T)
Removes the first occurence of a given object from the list. This will also unbind the object from its parent.
Public methodRemove(T)
Removes the first occurence of each specified object from the list. All objects will also be unbound from the parent object.
Public methodRemoveAll
Removes all the elements that match the conditions defined by the specified predicate.
(Inherited from ListT.)
Public methodRemoveAt
Removes a modeling object at a given index.
Public methodRemoveRange (Inherited from ListT.)
Public methodReverse (Inherited from ListT.)
Public methodReverse(Int32, Int32)
Reverses the order of the elements in the specified range.
(Inherited from ListT.)
Public methodSort (Inherited from ListT.)
Public methodSort(IComparerT) (Inherited from ListT.)
Public methodSort(ComparisonT) (Inherited from ListT.)
Public methodSort(Int32, Int32, IComparerT) (Inherited from ListT.)
Public methodToArray (Inherited from ListT.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTrimExcess (Inherited from ListT.)
Public methodTrueForAll (Inherited from ListT.)
Public methodUnion
Returns the union of the list with a given list, using a specified parent.
Top
Extension Methods
  NameDescription
Public Extension MethodAddIfNotNullT
Adds an object to the list if it is not null.
(Defined by Utils_Linq.)
Public Extension MethodAddRangeT
Adds the elements of the specified collection to the end of the System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodAsT
Casts an object to another type. Returns default(T) if the object is null.
(Defined by Utils_Other.)
Public Extension MethodEqualsAll
Checks that this object is equal to every object in parameters.
(Defined by Utils_Other.)
Public Extension MethodEqualsAny
Checks that this object is equal to at least one of the parameters.
(Defined by Utils_Other.)
Public Extension MethodGetRandomItemT
Gets a random item from a list of items.
(Defined by Utils_Linq.)
Public Extension MethodGetRangeT
Gets a range of values.
(Defined by Utils_Linq.)
Public Extension MethodGetString
Converts an object to String using ToString() method, else returns String.Empty.
(Defined by Utils_Other.)
Public Extension MethodIsGenericListOverloaded.
Checks if this object is a System.Collections.Generic.List.
(Defined by Utils_Linq.)
Public Extension MethodIsGenericList(Type)Overloaded.
Checks if this object is a System.Collections.Generic.List using type as T.
(Defined by Utils_Linq.)
Public Extension MethodMaxOrZeroT(FuncT, Single)Overloaded.
Gets the maximum number of a list, where all elements are transformed using a function.
(Defined by Utils_Linq.)
Public Extension MethodMaxOrZeroT(FuncT, Int32)Overloaded.
Gets the maximum number of a list, where all elements are transformed using a function.
(Defined by Utils_Linq.)
Public Extension MethodPopT
Filters, removes and returns a sequence of values based on a predicate.
(Defined by Utils_Linq.)
Public Extension MethodPopFirstT
Finds, removes and returns the first found occurrence of an element (based on a predicate).
(Defined by Utils_Linq.)
Public Extension MethodRemoveRangeT(ListT)Overloaded.
Removes all occurences of multiple objects from the List.
(Defined by Utils_Linq.)
Public Extension MethodRemoveRangeT(T)Overloaded.
Removes all occurences of multiple objects from the List.
(Defined by Utils_Linq.)
Public Extension MethodRemoveRangeT(FuncT, Boolean)Overloaded.
Removes all matching objects from the List.
(Defined by Utils_Linq.)
Public Extension MethodSerializeOverloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerialize(String)Overloaded.
Serializes an object into an XML document.
(Defined by Utils_Xml.)
Public Extension MethodSerializeJsonOverloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(ListType)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Public Extension MethodSerializeJson(DataContractJsonSerializerSettings)Overloaded.
Serializes an object using a DataContractJsonSerializer.
(Defined by Utils_String.)
Top
See Also