System.Xml.Serialization.LocalScope.TryGetValue C# (CSharp) Method

TryGetValue() public method

public TryGetValue ( string key, LocalBuilder &value ) : bool
key string
value System.Reflection.Emit.LocalBuilder
return bool
        public bool TryGetValue(string key, out LocalBuilder value)
        {
            if (_locals.TryGetValue(key, out value))
            {
                return true;
            }
            else if (parent != null)
            {
                return parent.TryGetValue(key, out value);
            }
            else
            {
                value = null;
                return false;
            }
        }