How about attaching CLSCompliantAttribute(false) to your property
> class MyControl : TextBox
> {
[quoted text clipped - 19 lines]
> case of guessing how to do things and then using trial and error. The MSDN
> documentation is apparently useless here.
C# Learner - 28 Oct 2004 12:15 GMT
> How about attaching CLSCompliantAttribute(false) to your property
Still no joy. :-/
"C# Learner" <csharp@learner.here> schrieb:
> class MyControl : TextBox
> {
[quoted text clipped - 5 lines]
> complains that 'Foo' isn't a CLS-compliant type and that it can't create
> code that sets it.
Simply do not use unsigned types, they are not CLS compliant. Instead, use
'short'/'int'/'long'.

Signature
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/
joeycalisay - 29 Oct 2004 02:09 GMT
Do you mean VS Form Designer only support full CLS for its codegen?
> "C# Learner" <csharp@learner.here> schrieb:
> > class MyControl : TextBox
[quoted text clipped - 9 lines]
> Simply do not use unsigned types, they are not CLS compliant. Instead, use
> 'short'/'int'/'long'.
Herfried K. Wagner [MVP] - 29 Oct 2004 11:17 GMT
"joeycalisay" <hcalisay@_spamkiller_codex-systems.com> schrieb:
> Do you mean VS Form Designer only support full CLS for
> its codegen?
I didn't check that, but I would try to avoid using unsiged types in object
interfaces.

Signature
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/