public T TryGetElement <T>() where T : IEasyElement, new() { IEasyElement element; if (_elements.TryGetValue(typeof(T).Name, out element)) { return((T)element); } else { return(AddElement <T>()); } }
public IESObject GetValue(string key) { IESObject value; if (_objects.TryGetValue(key, out value)) { return(value); } else if (_parent != null) { return(_parent.GetValue(key)); } else { return(ESDefault.Value); } }
public bool TryGetValue(string key, out IESObject value) { return(_dict.TryGetValue(key, out value)); }