title: How do you pass a property as a parameter
body: <p>I have a class, Player, which has 6 or so properties, all integers. For my project, there needs to be some sorting, and i'd like to be able to write a function that accepts a list of players and a property to sort them by returns a list of the players sorted by the passed property:</p>
  
  <pre><code>Class Player
     Public Property PID
     Public Property RunsScored
     PublicProperty  BallsFaced
  End Class
  
  Class AnotherClass
      Public Shared PlayerList As New List(Of Player)
  
      Public Player sort(list As List(Of Player), prop As Property)
          'sort the list by prop
          Return sorted list
      End Function
  </code></pre>
  
  <p>But I have no idea if this is a thing, does it have a name? Is it even possible?</p>