Xer0botXer0
Senpai
Hi !
So I've started with fun C# stuff, it's suppose to be a free fullstack suite that manages a lot of businessy things.
The problem I'm having probably stems from the way I see OOP coming from GML, I believe that you can have obj_potato and obj_sack and then reference obj_sacks.quantity variable directly from obj_potato..
but in C#, there's some annoying STATIC keyword that seems to be a great divide, sometimes the code apparently requires the class or method to be static, or the method to be static but then the class isn't and that prevents any referencing or accessing of variables.
There just seems to be a massive problem with accessing members of other classes.
Anyone know of a better way to look at C# in a way that'll shed light on this scope issue I'm having ?
It doesn't seem to be about the accessor keywords like private, partial, public and so on.
So I've started with fun C# stuff, it's suppose to be a free fullstack suite that manages a lot of businessy things.
The problem I'm having probably stems from the way I see OOP coming from GML, I believe that you can have obj_potato and obj_sack and then reference obj_sacks.quantity variable directly from obj_potato..
but in C#, there's some annoying STATIC keyword that seems to be a great divide, sometimes the code apparently requires the class or method to be static, or the method to be static but then the class isn't and that prevents any referencing or accessing of variables.
There just seems to be a massive problem with accessing members of other classes.
Anyone know of a better way to look at C# in a way that'll shed light on this scope issue I'm having ?
It doesn't seem to be about the accessor keywords like private, partial, public and so on.