Exemplo n.º 1
0
 public static Flashing Instance(int time, uint color)
 {
     var key = new Tuple<int, uint>(time, color);
     Flashing ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new Flashing(time, color);
     return ret;
 }
Exemplo n.º 2
0
        public static Flashing Instance(int time, uint color)
        {
            var      key = new Tuple <int, uint>(time, color);
            Flashing ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new Flashing(time, color);
            }
            return(ret);
        }