Does anybody give me suggestions in implementing an algorithm using a programming language such as C#.

For example, lets say; I had a stream of data continuously coming to me. I want to filter the data based on certain conditions such as "if new data is lessthan 10", discard the new data.

I can implement the same by 'C# generic collection', but Im more concerned about the performance. Because I may have to...