torsten's .NET blog In the end, everything is a gag [Ch. Chaplin]
# Friday, May 28, 2004
NameValueCollection not CLSCompliant

Today I stumbled over a framework v1.1 issue related to the wellknown System.Collections.Specialized.NameValueCollection. I used it in a public interface as a return parameter and somewhere again as method parameter within a assembly marked with the attribute CLSCompliant(true). The MSDN docs are silent about CLS compliance in that case and I figured out, it is not compliant! Got compile errors like this:

ADSIAuthenticationProvider.cs(31,37): error CS3001: Argument type 'PROCOS AG.Components.Authentication.Shared.IAuthenticationConfiguration' is not CLS-compliant

or

ADSIAuthenticationProvider.cs(44,10): error CS3002: Return type of 'PROCOS AG.Components.Authentication.Services.ADSIAuthenticationProvider.Authenticate(System.Collections.Specialized.NameValueCollection)' is not CLS-compliant

Both are NameValueCollection types. So: is it a bug? I did not found a notice about looking around with google, so I think I have to change my type(s) to a other one that is hopefully CLS compliant.

Technorati tags:  | 
Friday, May 28, 2004 8:26:00 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [1]  | 
Friday, October 28, 2005 12:14:44 PM (W. Europe Standard Time, UTC+01:00)
Hello. I just wanted to give a quick greeting and tell you I enjoyed reading your material
Comments are closed.
Navigation

Like RSS Bandit? Make a donation to help support its development and maintenance. As little as 1€ will help.

Make payments with PayPal - it's fast, free and secure!
On this page....
<November 2008>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

SUBSCRIBE RSS GeoURL e-mail

Search
Categories
Blogroll
[Feed] Dare Obasanjo
Dare Obasanjo aka Carnage4Life
[Feed] Clemens Vasters
[Feed] Omar Shahine
[Feed] Tom Mertens

newtelligence dasBlog 2.1.8102.813

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

WOT Notar

Join WebHost4Life.com