示例#1
0
        public Flyweight GetFlyweight(FlyweightType type)
        {
            if (!Flyweights.ContainsKey(type))
            {
                Flyweights.Add(type, new Flyweight(type, null));
            }

            return(Flyweights[type]);
        }
示例#2
0
 public Flyweight(FlyweightType type, byte[] data)
 {
     this.Type = type;
     this.Data = data;
 }