❔ CS7036 Error in Visual Studio. Simple Console Webshop program.
https://paste.mod.gg/ametaivrdggr/0 - Code
I can't figure out why I can't call SignInScreen()
BlazeBin - ametaivrdggr
A tool for sharing your source code with the world!
8 Replies
Well it's quite clear, isn't it?
SignInScreen()
takes four parameters
You call SignInScreen()
with zero parametersI tried copying all the parameters as well before, didn't make a difference but gave me 10x errors. Can you show me a corrected example? Because for me, it isn't quite clear unfortunately.
If a method takes parameters, method must get parameters
So, see if you even need those parameters
From what I can see in your code, you don't use any of them in the method
Oh I left them there for future use, ah well to remove it for now
Thanks I think I get it now
btw don't use
Convert.ToInt32
. use int.Parse
or (preferably) int.TryParse
instead. You can directly replace Convert.ToInt32
with int.Parse
so you should do that, but in order to use int.TryParse
you would have to make a few additional changes
also you can replace
with
much cleaner in my opinionHoly shiiiii that seems so useful
I dont think I ended up fixing anything, uh Im getting more confused
Can someone show me a corrected example of this just so I can understand where I went wrong
Been stuck here for a while
uhh
This method
takes four parameters
Here you call this method
but you give it zero parameters
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.