❔ Need help with this part of a programming assignment

Llive4eternity.jp2/24/2023
hello i am brand new to c# programming and i am stuck on this part of psuedocode and was wondering if anyone could me
Image
AAngius2/24/2023
What's the issue, exactly?
Llive4eternity.jp2/24/2023
im not understanding how to translate the psuedocode here is my code for it \
Image
AAngius2/24/2023
And what doesn't work about your code?
Llive4eternity.jp2/24/2023
i need help with passing the sortby type to the parameter everytime should it be put into the list<type> ?
AAngius2/24/2023
Just use a second parameter
Llive4eternity.jp2/24/2023
can i dm you ??
AAngius2/24/2023
No
TTheBoxyBear2/24/2023
The second note explains it. The Hero class has a Compare method with a SortBy parameter.
TTheBoxyBear2/24/2023
There needs to be a call to Hero.Compare somewhere
Llive4eternity.jp2/24/2023
okay thank you
AAccord2/25/2023
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.