Finding data within a class : I am using this class:

    class player
    {
      public string name;
      public int rating;

    {

and would like to access the 'name' due to the 'rating' that I have. Something along the lines of:
Get the name of the player that has the rating '4', or whatever the rating may be. There must be some sort of link between name and rating because they are in the same class, but im not sure how to exploit this. Also if there are class instances where two of them have the same rating, how would it effect this?
