Lookup() public method

public Lookup ( string key ) : Name
key string
return Name
コード例 #1
0
ファイル: NameManager.cs プロジェクト: jnm2/corefx
        internal Name Add(string key)
        {
            if (key == null)
            {
                throw Error.InternalCompilerError();
            }

            return(s_knownNames.Lookup(key) ?? _names.Add(key));
        }
コード例 #2
0
ファイル: NameManager.cs プロジェクト: tremp/corefx
 internal static Name Lookup(string key)
 {
     Debug.Assert(key != null);
     return(s_names.Lookup(key));
 }