A
Alessandro Riolo
[c/p between microsoft.public.dotnet.languages.csharp and
microsoft.public.visio.software.modeling, I don't really know where it
would have to be posted]
I've got a weird thing when reverse engineering a c# project which is
declaring and then using an event of type CancelEventHandler as in the
following snippet:
...
public event System.ComponentModel.CancelEventHandler MyEvent;
protected virtual void OnMyEvent (System.ComponentModel.CancelEventArgs
e)
{
if (MyEvent != null)
{
MyEvent (this, e);
}
}
...
// some code creating a CancelEventArgs
OnMyEvent(e)
...
This code compile and works perfectly, when I try to reverse engineer
that on UML (on Visio 2002 through VSEA 2003) I don't get any error, but
when I see the resulting UML from Visio, the output error windows is
warning about an UMLE00501 error I couldn't find any reference about.
Here is what I read:
"UMLE00501: CancelEventHandler[Class] : Un delegato può disporre di una
sola operazione".
I've Italian versions of both Visio 2002 and VSEA 2003, and a
translation of that error message could be "a delegate can get one and
only one operation".
I tested that with another Event Handler, the generic EventHandler, and
I got same mistake. When I double click on the line in the output error
windows, the focus is shifting in the Model Explorer, and there not in
the class and in the package where I used that, but directly in the
CancelEventHandler class in the package ComponentModel inside the System
package.
Anyone knowing what is going on? Is there somewhere a reference for the
UMLE family of errors (I've got also the UMLE00011 in some other point).
microsoft.public.visio.software.modeling, I don't really know where it
would have to be posted]
I've got a weird thing when reverse engineering a c# project which is
declaring and then using an event of type CancelEventHandler as in the
following snippet:
...
public event System.ComponentModel.CancelEventHandler MyEvent;
protected virtual void OnMyEvent (System.ComponentModel.CancelEventArgs
e)
{
if (MyEvent != null)
{
MyEvent (this, e);
}
}
...
// some code creating a CancelEventArgs
OnMyEvent(e)
...
This code compile and works perfectly, when I try to reverse engineer
that on UML (on Visio 2002 through VSEA 2003) I don't get any error, but
when I see the resulting UML from Visio, the output error windows is
warning about an UMLE00501 error I couldn't find any reference about.
Here is what I read:
"UMLE00501: CancelEventHandler[Class] : Un delegato può disporre di una
sola operazione".
I've Italian versions of both Visio 2002 and VSEA 2003, and a
translation of that error message could be "a delegate can get one and
only one operation".
I tested that with another Event Handler, the generic EventHandler, and
I got same mistake. When I double click on the line in the output error
windows, the focus is shifting in the Model Explorer, and there not in
the class and in the package where I used that, but directly in the
CancelEventHandler class in the package ComponentModel inside the System
package.
Anyone knowing what is going on? Is there somewhere a reference for the
UMLE family of errors (I've got also the UMLE00011 in some other point).