I know there are similar questions but I don’t see one exactly like my issue. I have copied my professor’s code exactly (he was doing a walkthrough of one of the problems) and for some reason, his code works perfectly and mine crashes and tells me that “the call is ambiguous between the following methods or properties”. My code looks just like his…. what am I missing?
This is all on Visual Studios, he is using .net 5 and I am on .net 8, could that be part of the problem? The program ran just fine when I did it myself as a void method, but now that I am doing it his way it errors out.
this is his code, no squiggly red line for him: