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

  • Thread starter Thread starter active
  • Start date Start date
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
 
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.
 
Back
Top