❔ 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
What's the issue, exactly?
im not understanding how to translate the psuedocode here is my code for it \
And what doesn't work about your code?
i need help with passing the sortby type to the parameter everytime should it be put into the list<type> ?
Just use a second parameter
can i dm you ??
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
okay thank you
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.

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended 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 ❔ Beginner Project IdeaHey I'm a beginner and looking to work on a project: I'm beginner with C# using a app called " solo❔ MVC EnumerateHi everyone, I'm currently working on HW4 in CS366 and I am having some trouble figuring out how to ❔ CS1660Hello, I am making a small MVC project and I have encountered error CS1660 and cannot find out how t❔ ServiceBase question: is Main() or OnStart() my entry point?I have a program that extends `ServiceBase`. I am given a method to override called `OnStart()`. Whe❔ login system saves data from userHi this is the code that i have and i dont know why but its showing me the username and not the realHow do I use String.Format with a multidimensional array?```csharp char[,] state = new char[3, 3] { {'A', ' ', ' '}, {' ', ' ', ' '}, {' ', ' ', ❔ How do I Open Source Software correctly?I'm worried that I don't know how to OSS correctly. How do I choose a library? I want to write C# c❔ StreamerBot x Discord``` using System; using System.Runtime; using Twitch.Common.Models.Api; public class CPHInline { ❔ my API doesn't have an Startup.cs file<:Naomi:838549922235285516>✅ When and how should I use the Windows EventLog?Hello, do I need to create proper source via `EventLog.CreateEventSource`? If I need to, what is th