public static void Add(Type type, string value) { lock (OneToManyLocker.GetLock(OneToManyLocker.LockType.Write)) { _lookup.Add(type, value); } }
public static string Lookup(Type type) { string result; lock (OneToManyLocker.GetLock(OneToManyLocker.LockType.Read)) { _lookup.TryGetValue(type, out result); } return(result); }