Click or drag to resize

ExpansionContextT Class

A list of values as the input or output of placeholder level expansion.
Inheritance Hierarchy

Namespace:  MFiles.VAF.Placeholders
Assembly:  MFiles.VAF (in MFiles.VAF.dll) Version: 2.2.0.9
Syntax
C#
public abstract class ExpansionContext<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable, IExpansionContext

Type Parameters

T
The type of value contained.

The ExpansionContextT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyContextType
The type of value this context contains.
Public propertyCount
Gets the number of elements contained in the list.
Public propertyIsReadOnly
Indicates if the list can be modified, or is readonly.
Public propertyItem
Gets or sets the item at the specified index. Ignores null values.
Protected propertyList
Internal list.
Public propertyText
A string representation of the values contained.
Public propertyType
The type of item this list contains.
Top
Methods
  NameDescription
Public methodAdd
Adds an item to the list. Ignores null values.
Public methodAssertValidItem
Ensures an item is valid before it is added to the list. Delegated to by the IList methods that add a value to the list. The item to add is returned. If null is returned nothing will be added.
Public methodClear
Removes all items from the list.
Public methodClone
Returns a new instance of this context type with the same values.
Public methodContains
Determines whether the item is present in the list.
Public methodCopyTo
Copies the elements of the list to an Array, starting at a particular Array index.
Public methodGetEnumerator
Returns an enumerator that iterates through each item of the list.
Public methodIndexOf
Determines the index of a specific item.
Public methodInsert
Inserts an item at the specified index. Ignores null values.
Public methodRemove
Removes an item from the list.
Public methodRemoveAt
Removes the item at the specified index.
Public methodSafeCastT2
Casts the context to an enumerable list of type T safely. If the cast is not valid, null is returned.
Public methodUniqueValues
Returns a new instance of this context type with duplicate values removed.
Top
Extension Methods
Remarks
These lists should never contain null or empty values. These lists can contain duplicates.
See Also