Get record count depending upon the number of entries in a list

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fastestindian
    New Member
    • Aug 2009
    • 74

    Get record count depending upon the number of entries in a list

    Hi,

    I want to get the count of records from a list.
    for example

    MyList contains records
    AAA
    BBB
    CCC
    AAA
    DDD
    AAA
    BBB


    then I should get the result as
    AAA 3
    BBB 2
    CCC 1
    DDD 1

    Is there any way to did out the count in C# 2.0
Working...