Amplifying my comment to LukeH, a valuable pattern if a person will need to use Reflection to invoke diverse actions based mostly upon a sort parameter (as distinct from the type of an item instance) is to create a private generic static course something like the following (this specific code is untested, but I have completed this sort of matter ah