Vashomaru
How to sort a list of a class by property using LINQ when the name of the property comes from input
hmm, i'll see what i can come up with, thanks for the advice, i'll try to think it with a fresher head later and maybe even find a different approach
10 replies
How to sort a list of a class by property using LINQ when the name of the property comes from input
after i read your example i realized i forgot to add something important, im using reflection to get the name of the properties and then show them as the possible option to write in the console because im trying to make this work with a List of different classes with different property names. thats why maybe the switch statement wasnt an option i think? i though i maybe having to use reflection again but i dont know how i would do it haha
10 replies