Comments:
errrrm.
I am NOT an MVP, and according to the Microsoft MVP awardies page, Peter
Duniho is not a current MVP holder
(
https://mvp.support.microsoft.com/communities/mvp.aspx?name=peter+duniho).
I KNEW IT--PETER DUNIHO IS A FRAUD! HAHAHAHAHA THANKS CIARAN! HAHAHA
A FRAUD. But he's more knowledgeable than most about C# so let's not
rub it in. Love it. A fake. Like that guy on Wikipedia that claimed
to be a college professor on some subject and was unemployed trailer
park trash.
Events in .NET are not normally generated by wizards. They are made with
code like:
public delegate void MyEventHandler(object sender, MyEventEventArgs e);
public event MyEventHandler MyEvent;
There is nothing autogenerated about the above code. It is just C# written
by hand in this windows to create an delegate type, and an event.
Sorry, I was not clear. I am saying the same thing, but saying that
when you click on an event handler like "_OnClick" using the Wizards,
the Events skeleton code is automatically generated by the Wizards,
that's all. I completely agree with you.
Wizards are great BTW-I'm using one now to create a MDI parent window
and child windows under Forms--great stuff.
This was a point of view that I raised as Devils Advocate rather than
voicing me own opinion. I tend to think of the phrase "Horses for courses",
as in, nothing is applicable everywhere.
So that's what that phrase means. Always wondered about that.
Nothing you do in the code editor can mess this up unless you mean
attempting to edit Visual Studio's resource files which is not at all
something somebody should be doing. Creating events is a simple thing youdo
in code.
Right. I meant if you mess with the resource files and/or .h headers
in C++ that are in the library--don't go there.
If this was your "UnAwareClass" based example then I would be concerned
reading that by the comment chain posted in that thread, that you are still
trying to push it as an "excellent" example. No offence to yourself, as I
think your willingness to take part in the community is respectable, but if
clever people like MVP's have so much to say on your example, maybe it isnt
"excellent".
But some of them are imposter MVP's. That don't count. Is Jon Skeet
an MVP? Lemme check...he's been posting forever, I see his name from
eight years ago on the net...well I'll be damned, not only is he an
MVP, he's almost famous: "Jon is primarily a C# and Java developer in
Reading, England. In 2008 Manning published his book, "C# in Depth."
He has three young sons, and is currently working at Google".
Google, man I remember when they went public, and how the smart money
in Silcon Valley where I was at the time piled into those restricted
shares--they knew a good thing and made off like bandits.
RL
[N00b C# MVP, with a solid 30 days coding experience]