Lookup() public method

public Lookup ( string key ) : Name
key string
return Name
Beispiel #1
0
        internal Name Add(string key)
        {
            if (key == null)
            {
                throw Error.InternalCompilerError();
            }

            return(s_knownNames.Lookup(key) ?? _names.Add(key));
        }
Beispiel #2
0
 internal static Name Lookup(string key)
 {
     Debug.Assert(key != null);
     return(s_names.Lookup(key));
 }