Class GenericIndexer<T, T1>
- Inheritance
-
GenericIndexer<T, T1>
- Implements
-
- Derived
-
- Inherited Members
-
- Namespace
- TabularEditor.TOMWrapper
- Assembly
- TOMWrapper.dll
[TypeConverter(typeof(IndexerConverter))]
public abstract class GenericIndexer<T, T1> : IEnumerable<T1>, IEnumerable where T : TabularNamedObject
Type Parameters
- Extension Methods
-
Constructors
GenericIndexer(TabularObject)
protected GenericIndexer(TabularObject parent)
Parameters
Properties
Collection
protected TabularObjectCollection<T> Collection { get; }
Property Value
EmptyValue
protected virtual T1 EmptyValue { get; }
Property Value
EnableMultiLine
protected virtual bool EnableMultiLine { get; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
this[string]
public T1 this[string index] { get; set; }
Parameters
Type |
Name |
Description |
string |
index |
|
Property Value
this[T]
public T1 this[T key] { get; set; }
Parameters
Type |
Name |
Description |
T |
key |
|
Property Value
Keys
public virtual IEnumerable<string> Keys { get; }
Property Value
Model
protected Model Model { get; }
Property Value
Summary
public virtual string Summary { get; }
Property Value
Methods
Clear()
public virtual void Clear()
Copy()
public Dictionary<string, T1> Copy()
Returns
CopyFrom(IDictionary<string, T1>)
public void CopyFrom(IDictionary<string, T1> source)
Parameters
CopyFrom(GenericIndexer<T, T1>, Func<T1, T1>)
public void CopyFrom(GenericIndexer<T, T1> source, Func<T1, T1> mutator = null)
Parameters
GetCollection()
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.
public virtual string GetDisplayName(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetEnumerator()
public IEnumerator<T1> GetEnumerator()
Returns
GetObjectFromName(string)
protected virtual T GetObjectFromName(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetValue(T)
protected abstract T1 GetValue(T key)
Parameters
Type |
Name |
Description |
T |
key |
|
Returns
IsEmptyValue(T1)
protected virtual bool IsEmptyValue(T1 value)
Parameters
Type |
Name |
Description |
T1 |
value |
|
Returns
SetAll(T1)
public void SetAll(T1 value)
Parameters
Type |
Name |
Description |
T1 |
value |
|
SetValue(T, T1)
protected abstract void SetValue(T key, T1 value)
Parameters
Type |
Name |
Description |
T |
key |
|
T1 |
value |
|
ToJson()
public virtual string ToJson()
Returns