Esempio n. 1
0
 public void RemoveReader(BufferReader reader)
 {
     int index = GetReaderIndex(reader);
     if (index > -1)
     {
         RemoveReaderAt(index);
     }
 }
Esempio n. 2
0
 public int GetReaderIndex(BufferReader reader)
 {
     for (int i = 0; i< readers.Count; i++)
     {
         if (readers[i] == reader)
             return i;
     }
     return -1;
 }