❔ Need help with this part of a programming assignment

hello i am brand new to c# programming and i am stuck on this part of psuedocode and was wondering if anyone could me
10 Replies
Angius
Angius17mo ago
What's the issue, exactly?
live4eternity.jp
live4eternity.jp17mo ago
im not understanding how to translate the psuedocode here is my code for it \
Angius
Angius17mo ago
And what doesn't work about your code?
live4eternity.jp
live4eternity.jp17mo ago
i need help with passing the sortby type to the parameter everytime should it be put into the list<type> ?
Angius
Angius17mo ago
Just use a second parameter
live4eternity.jp
live4eternity.jp17mo ago
can i dm you ??
Angius
Angius17mo ago
No
TheBoxyBear
TheBoxyBear17mo ago
The second note explains it. The Hero class has a Compare method with a SortBy parameter. There needs to be a call to Hero.Compare somewhere
live4eternity.jp
live4eternity.jp17mo ago
okay thank you
Accord
Accord17mo ago
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.
Want results from more Discord servers?
Add your server
More Posts
✅ Make process believe it's a startup app?Hello! So I'm building an app that starts another app. The app in question seems to behave differen❔ Board Game (Marvel Champions) Gameplay Simulator - deep clone is very inefficientI have coded a program that simulates X games of Marvel Champions (a living card game by FFG). It wo❔ Problem of collections blocking when they shouldn't (BlockingCollection/ConcurrentQueue)Hello there, I have a problem with the producer-consumer patron in an application in net 6 (console❔ How do i run a c# programHello I wrote a new program in .txt file, how do i run this? It goes: Console WriteLine ()"Hello Wor✅ WPF SliderHello, I've bind my array of double to my slider but i do not know how to use the slider in order toCross Thread operation not valid: control 'CardStatusField' acessed from a thread other than the thr```c namespace Project1 { public partial class Form1 : Form { NFCReader NFC = new NF❔ ✅ Splitting string without allocationI'm writing a JsonConverter for Vector3 and I'd like to do this without allocating too much memory. ❔ How to correctly use Roslyn to parse RegionDirectiveTriviaSyntax in a project?I would like to ask a question about parsing syntax tree for #region preprocessor directive. For exa❔ How to rebuild searchable PDF to PDF with digital textI have already got searchable PDF, but that wasnt in text digital, it just an image but detected tex✅ command methods not throwing any errorsmy methods for my commands, even when awaited at every reference point, aren't throwing errors that