J
J.B. Moreno
Tom Shelton said:If you say, so. I just don't see that big a difference - other then VB.NET
has a formalized concept of raising an event, C# treats it as a method call
(sort of). Different symantics, same result.
And under the hood Properties are just procedures and functions that
take or return a value. But thinking of them as functions or
procedures is just wrong, it messes up the conceptual framework and
leads to properties that do things unrelated to setting or getting the
underlying value.
Same thing for events, while you can call them without raising the
event, you shouldn't, and thinking of them as delegates will lead to
doing so.
(BTW, for the most part I don't choose a language I work with whatever
choice has already been made).