Warning 1 Type of parameter 'e' is not CLS-compliant. ...

A

active

I have this:

Public NotInheritable Class StateChangedEventArgs

Inherits EventArgs

....

and in some subs this:

Public Event SelectionChanged(ByVal sender As Object, ByVal e As
StateChangedEventArgs)



In on and only one sub I get the error:

Warning 1 Type of parameter 'e' is not CLS-compliant. ...

What might be special about that sub?



I guessed that maybe the IDE only shows the message once no matter how many
times it occurs, so I commented it out of the offending sub and the error
list no longer showed it.

Is there an error level option in the IDE - I've looked but did not find
one.



thanks
 
B

Branco Medeiros

I have this:

Public NotInheritable Class StateChangedEventArgs

Inherits EventArgs

...

and in some subs this:

Public Event SelectionChanged(ByVal sender As Object, ByVal e As
StateChangedEventArgs)

In on and only one sub I get the error:

Warning 1 Type of parameter 'e' is not CLS-compliant. ...

What might be special about that sub?
<snip>

I guess you should post the exact code of the offending sub, and where
it's located...

Regards,

Branco.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top