public IFlyweightEmoticon GetEmoticon(string content) { if(this.emoticonsInUse.ContainsKey(content)) { return this.emoticonsInUse[content]; } var newEmoticon = new Emoticon(content); this.emoticonsInUse.Add(content, newEmoticon); this.ObjectsCreated++; return newEmoticon; }