SpReeD
INotifyPropertyChanged
variables of classes
There's nothing like it, you have either Properties
or Fields
, the latter are the actual storage, while a Property
is like a linked gate to a shadow-field/backing-field behind it.
Going further, this is the so called state of the instance of the object
, which changes throughout runtime.
While static
is a non-instance object
, so every method
or field
has only one instance, like a singleton pattern styled class
.
I wrote this, because I see you have plenty of static
, if not only, methods
.
Can you provide more $code ?26 replies
INotifyPropertyChanged
This answer explains
BindingList
it in short terms:
https://stackoverflow.com/questions/4284663/difference-between-observablecollection-and-bindinglist26 replies
INotifyPropertyChanged
It depends on the rest of the code, generally speaking, "yes".
However, I guess you're using the
INotifyPropertyChanged
in WPF/MAUI? - If so, you don't subscribe directly to the event, let the UI handle it by using bindings between View & ViewModel - also you don't wanna use List
, but ObservableCollection
or better BindingList
since both implement the INotifyCollectionChanged
interface.26 replies
Problem with Timer
First of all I would encourage you to use the universal science language in your code, all over your code. Next, bring up some details, what is the goal of it all?
As far as I understand polish, it's the beginning for some game, getting missions, earning expierence, levels, etc. each saved to a different txt file?
17 replies
I'm new to C# and i need to know something
Just because it's 2D doesn't mean it's not art. 2D gfx and pixel-gfx is art at all. - But, besides that, you seem to only see the money not the art in this, like, coding. People who writes code are authors and writes prose in the language of logic. - However, if you don't have 27GB (the space of a free USB drive) for an actual IDE instead of a texteditors with plugins. I can't help ya, nobody can.
Wish you good luck on your way and may the dollars be with you ❤️
66 replies
I'm new to C# and i need to know something
Windows-Apps? - You mean Desktop-Applications? - And Mobile, like MAUI I guess.
You surely ain't the first and not the last one with a good game/app idea - but it's a long long way to go from zero to hero. Development ain't just a bunch of ChatGPT output - people study that topic (computer science) for years and decades and still need a team to make a game, you know, somebody has to code, someone else has to do SFX & GFX and so on.
66 replies