public override object ValueOf(object key) { ElementViewer ev = key as ElementViewer; if (ev != null) { return(ev.t.ToCompactString()); } else { return(key); } }
public override object ValueOf(object key) { ElementViewer ev = key as ElementViewer; return(ev != null ? ev.t.ToCompactString() : key); }