I have a list like this,
TYPE FROM TO
voice CALLER_A CALLER_B
text CALLER_A CALLER_C
voicemail CALLER_A CALLER_B
voice CALLER_A CALLER_B
text CALLER_A CALLER_C
I want to have a count How many time FROM Called TO By using TYPE
TYPE FROM TO COUNT
voice CALLER_A CALLER_B 2
voicemail CALLER_A CALLER_B 1
text CALLER_A CALLER_C 2
How to I do this. Please Advice
You can group on a annonymous class in C#. I wrote the following example that demonstrates this:
This will give the following output: