ExpansionContextT Class

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

Definition

Namespace: MFiles.VAF.Placeholders
Assembly: MFiles.VAF (in MFiles.VAF.dll) Version: 24.1.706.1
C#
public abstract class ExpansionContext<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable, IExpansionContext
Inheritance
Object    ExpansionContextT
Derived
Implements
IExpansionContext, ICollectionT, IEnumerableT, IListT, IEnumerable

Type Parameters

T
The type of value contained.

Remarks

These lists should never contain null or empty values. These lists can contain duplicates.

Constructors

ExpansionContextT Constructor.

Properties

ContextType The type of value this context contains.
Count Gets the number of elements contained in the list.
IsReadOnly Indicates if the list can be modified, or is readonly.
Item Gets or sets the item at the specified index. Ignores null values.
List Internal list.
Text A string representation of the values contained.
Type The type of item this list contains.

Methods

Add Adds an item to the list. Ignores null values.
AssertValidItem 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.
Clear Removes all items from the list.
Clone Returns a new instance of this context type with the same values.
Contains Determines whether the item is present in the list.
CopyTo Copies the elements of the list to an Array, starting at a particular Array index.
GetEnumerator Returns an enumerator that iterates through each item of the list.
IndexOf Determines the index of a specific item.
Insert Inserts an item at the specified index. Ignores null values.
Remove Removes an item from the list.
RemoveAt Removes the item at the specified index.
SafeCastT2 Casts the context to an enumerable list of type T safely. If the cast is not valid, null is returned.
UniqueValues Returns a new instance of this context type with duplicate values removed.

Extension Methods

AddUniqueT Collection Extension to Ensure items added to a collection are unique
(Defined by MFUtils)
AddUniqueT Collection Extension to Ensure items added to a collection are unique
(Defined by MFUtils)

See Also