void AddLocked(TypeOrString key, bool exactMatchRequired, TValue value) { List <MatchInfo <TValue> > matchInfoList; if (!map.TryGetValue(key, out matchInfoList)) { map.Add(key, matchInfoList = new List <MatchInfo <TValue> > ()); } matchInfoList.Insert(0, new MatchInfo <TValue> (key, value, exactMatchRequired)); hasAny = true; }
public MatchInfo(TypeOrString key, T value, bool exactMatchRequired) { Key = key; Value = value; ExactMatchRequired = exactMatchRequired; }