I've got some really fundamental questions that I am almost embarassed to ask.
But what is the real importance of properties in C#? And how many ways are there to
invoke a method?
Ssam .......
I've got some really fundamental questions that I am almost embarassed to ask.
But what is the real importance of properties in C#? And how many ways are there to
invoke a method?
Ssam .......
Properties are to control access to member variables. You can make them read only or read/write. I'm sure there's this other important thing but I do a lot of mushroom.
There's only two ways I know of:
calling it directly
FooClass.StaticMethod();
FooObject.InstanceMethod();
or through an event handler.
this.click += new EventHandler(foo_method);
Let me know if that is not what you meant.
Thanks ! I really appreciate you taking the time to reply...
Ssam.......
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.