Exemplo n.º 1
0
 private void Add(ITextWithColor text)
 {
     lock (SyncRoot)
     {
         _source.Add(text);
         Count += text.Text.Length;
     }
 }
 private void Add(ITextWithColor <TColor> text)
 {
     lock (SyncRoot)
     {
         _source.Add(text);
         Count += text.Text?.Length ?? 0;
     }
 }