Class GenericIndexer<T, T1>
Inheritance
GenericIndexer<T, T1>
Assembly: TOMWrapper.dll
Syntax
[TypeConverter(typeof(IndexerConverter))]
public abstract class GenericIndexer<T, T1> : IEnumerable<T1>, IEnumerable where T : TabularNamedObject
Type Parameters
Constructors
GenericIndexer(TabularObject)
Declaration
protected GenericIndexer(TabularObject parent)
Parameters
Properties
Collection
Declaration
protected TabularObjectCollection<T> Collection { get; }
Property Value
EmptyValue
Declaration
protected virtual T1 EmptyValue { get; }
Property Value
EnableMultiLine
Declaration
protected virtual bool EnableMultiLine { get; }
Property Value
IsEmpty
Declaration
public bool IsEmpty { get; }
Property Value
this[string]
Declaration
public T1 this[string index] { get; set; }
Parameters
Type |
Name |
Description |
string |
index |
|
Property Value
this[T]
Declaration
public T1 this[T key] { get; set; }
Parameters
Type |
Name |
Description |
T |
key |
|
Property Value
Keys
Declaration
public virtual IEnumerable<string> Keys { get; }
Property Value
Model
Declaration
protected Model Model { get; }
Property Value
Summary
Declaration
public virtual string Summary { get; }
Property Value
Methods
Clear()
Declaration
public virtual void Clear()
Copy()
Declaration
public Dictionary<string, T1> Copy()
Returns
CopyFrom(IDictionary<string, T1>)
Declaration
public void CopyFrom(IDictionary<string, T1> source)
Parameters
CopyFrom(GenericIndexer<T, T1>, Func<T1, T1>)
Declaration
public void CopyFrom(GenericIndexer<T, T1> source, Func<T1, T1> mutator = null)
Parameters
GetCollection()
Declaration
protected abstract TabularObjectCollection<T> GetCollection()
Returns
GetDisplayName(string)
Gets the value to display for a given key. Note, this is not the value of the object represented by the key.
Declaration
public virtual string GetDisplayName(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetEnumerator()
Declaration
public IEnumerator<T1> GetEnumerator()
Returns
GetObjectFromName(string)
Declaration
protected virtual T GetObjectFromName(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetValue(T)
Declaration
protected abstract T1 GetValue(T key)
Parameters
Type |
Name |
Description |
T |
key |
|
Returns
IsEmptyValue(T1)
Declaration
protected virtual bool IsEmptyValue(T1 value)
Parameters
Type |
Name |
Description |
T1 |
value |
|
Returns
SetAll(T1)
Declaration
public void SetAll(T1 value)
Parameters
Type |
Name |
Description |
T1 |
value |
|
SetValue(T, T1)
Declaration
protected abstract void SetValue(T key, T1 value)
Parameters
Type |
Name |
Description |
T |
key |
|
T1 |
value |
|
ToJson()
Declaration
public virtual string ToJson()
Returns
Implements
Extension Methods