Example #1
0
        public bool TryGetValue <T>(ImagePropertyId id, out T value)
        {
            value = default(T);
            object result;

            if (IdValueMapTable.TryGetValue(id, out result))
            {
                if (result != null && result is T)
                {
                    value = (T)result;
                }
                return(true);
            }
            return(false);
        }
Example #2
0
 public object this[ImagePropertyId id] {
     get { return(IdValueMapTable[id]); } set { IdValueMapTable[id] = value; }
 }