Hotel in Munich
Methodology: Process Model of Microsoft CRM

Generics and CLS Compliance

Kevin Dente has a problem with generics as not being CLS compliant. With Longhorn generics will be CLS compliant.

In the meantime with CLS compliant assemblies this can be done:

  • using generics within the classes is not a problem
  • having generic classes as arguments of public/protected methods, both a generic and an alternate version can be supplied. The generic version is marked with the attribute [CLSCompliant(false)], while the alternate version is CLS compliant.

With the Longhorn timeframe the non-generic version can be marked obsolete.

Christian

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

[karsten samaschke]

AUTHOR: [karsten samaschke]
IP: 000.000.000.000
DATE: 06/22/2004 03:37:00 AM

Kevin Dente

That would be the dual API approach that I mentioned. Generally annoying and just messy that I need to do this.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)