mustache.KeyScope.find C# (CSharp) Method

find() private method

private find ( string name ) : object
name string
return object
        private object find(string name)
        {
            IDictionary<string, object> lookup = toLookup(_source);
            if (lookup.ContainsKey(name))
            {
                return lookup[name];
            }
            if (_parent == null)
            {
                string message = String.Format(CultureInfo.CurrentCulture, Resources.KeyNotFound, name);
                throw new KeyNotFoundException(message);
            }
            return _parent.find(name);
        }