Hi Fabio,
"Type of '<myclassesname>' is not CLS-compliant"
This occured any line it was used outside of the assembly it was
created.
I know for a fact that this class is CLS-compliant as I am using only
System value types. Anyway, it's not an issue now, I have managed to stop
it complaining by stick a CLSCompliant attribute onto the class.
Everything works as expected now.
I can only presume this is a SP1 bug or somesuch, and can join the
others that I have encountered recently
The class looked pretty much like this....
------------
Class myclassisclscompliantsoshutupmoaning
Private cStrName as string = string.empty
Public property name() as string
...normal property body
End property
Public sub new(Byval iOtherParameter as Boolean, _
Byval iName as String)
If(iOtherParameter)
'do other stuff with iName before setting property
Else
cStrName = iName
End if
End sub
End Class
------------
Anyways, thanks for your time.
Nick.
"Fabio Z" <zn*******@virgilio.itwrote in message
news:ON**************@TK2MSFTNGP03.phx.gbl...
"NickP" <ni**@nick.comha scritto nel messaggio
news:%2****************@TK2MSFTNGP03.phx.gbl...
> The strange thing is that it only exposes system types, the
properties it exposes are as follows....
name String
company String
email String
appGUID String
version String
And it has 1 constructor that asks for all of said properties + 1 more
that is not exposed, which is of Boolean type.
Why on earth does VS keep telling me this isn't CLS compliant?
What is the excact error and what is the exact line of code?