public Flyweight GetFlyweight(FlyweightType type) { if (!Flyweights.ContainsKey(type)) { Flyweights.Add(type, new Flyweight(type, null)); } return(Flyweights[type]); }
public Flyweight(FlyweightType type, byte[] data) { this.Type = type; this.Data = data; }