Beispiel #1
0
 public static void Add(Type type, string value)
 {
     lock (OneToManyLocker.GetLock(OneToManyLocker.LockType.Write))
     {
         _lookup.Add(type, value);
     }
 }
Beispiel #2
0
    public static string Lookup(Type type)
    {
        string result;

        lock (OneToManyLocker.GetLock(OneToManyLocker.LockType.Read))
        {
            _lookup.TryGetValue(type, out result);
        }

        return(result);
    }