Esempio n. 1
0
 public object this[object key]
 {
     get { return(m_map.Find((TKey)key).ValueOrDefault); }
     set
     {
         throw CreateNotSupportedException();
     }
 }
Esempio n. 2
0
            public bool TryGetValue(TKey key, out TValue value)
            {
                var result = m_map.Find(key);

                value = result.HasValue
                    ? result.Value
                    : default(TValue);
                return(result.HasValue);
            }