public bool TryGet(string name, out object value) { value = null; if (name == null) { return(false); } if (name == string.Empty) { return(false); } return((_stack == null) ? false : _stack.TryGet(name, out value)); }
public bool TryGet(string name, out object value) { value = null; bool found = false; if (!string.IsNullOrEmpty(name)) { if (name == _name) { value = _value; found = true; } else if (_subStack != null) { found = _subStack.TryGet(name, out value); } } return(found); }