Table of Contents

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

Name Description
T
T1
Extension Methods

Constructors

GenericIndexer(TabularObject)

protected GenericIndexer(TabularObject parent)

Parameters

Type Name Description
TabularObject parent

Properties

Collection

protected TabularObjectCollection<T> Collection { get; }

Property Value

Type Description
TabularObjectCollection<T>

EmptyValue

protected virtual T1 EmptyValue { get; }

Property Value

Type Description
T1

EnableMultiLine

protected virtual bool EnableMultiLine { get; }

Property Value

Type Description
bool

IsEmpty

public bool IsEmpty { get; }

Property Value

Type Description
bool

this[string]

public T1 this[string index] { get; set; }

Parameters

Type Name Description
string index

Property Value

Type Description
T1

this[T]

public T1 this[T key] { get; set; }

Parameters

Type Name Description
T key

Property Value

Type Description
T1

Keys

public virtual IEnumerable<string> Keys { get; }

Property Value

Type Description
IEnumerable<string>

Model

protected Model Model { get; }

Property Value

Type Description
Model

Summary

public virtual string Summary { get; }

Property Value

Type Description
string

Methods

Clear()

public virtual void Clear()

Copy()

public Dictionary<string, T1> Copy()

Returns

Type Description
Dictionary<string, T1>

CopyFrom(IDictionary<string, T1>)

public void CopyFrom(IDictionary<string, T1> source)

Parameters

Type Name Description
IDictionary<string, T1> source

CopyFrom(GenericIndexer<T, T1>, Func<T1, T1>)

public void CopyFrom(GenericIndexer<T, T1> source, Func<T1, T1> mutator = null)

Parameters

Type Name Description
GenericIndexer<T, T1> source
Func<T1, T1> mutator

GetCollection()

protected abstract TabularObjectCollection<T> GetCollection()

Returns

Type Description
TabularObjectCollection<T>

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

Type Description
string

GetEnumerator()

public IEnumerator<T1> GetEnumerator()

Returns

Type Description
IEnumerator<T1>

GetObjectFromName(string)

protected virtual T GetObjectFromName(string name)

Parameters

Type Name Description
string name

Returns

Type Description
T

GetValue(T)

protected abstract T1 GetValue(T key)

Parameters

Type Name Description
T key

Returns

Type Description
T1

IsEmptyValue(T1)

protected virtual bool IsEmptyValue(T1 value)

Parameters

Type Name Description
T1 value

Returns

Type Description
bool

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

Type Description
string