daysleeper
โ
Member '<member name>' cannot be accessed with an instance reference
i dont really get what your palindromeCheck() is supposed to do but to resolve your issues: first off you cant declare "void int" there can only be one return type - either void or int. your Main() method is the part that executes in C#, so you need to invoke your method inside it. then you mustnt create an instance of Program. you need to make methods static (you only did it to Reverse method) and you will be able to to do what you want. there are probably some more issues which i cant think of right now but you can say which errors you get afterwards
5 replies
โ
How to parse this weird API ?
https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/reflection-and-attributes/ try reflection maybe can help
122 replies