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 9:26:00 AM (W. Europe Daylight Time, UTC+02:00)    #  Comments [1]  | 
Friday, October 28, 2005 1:14:44 PM (W. Europe Daylight Time, UTC+02: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!
Site supporters
On this page....
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

SUBSCRIBE RSS GeoURL e-mail

Search
Categories
Blogroll

newtelligence dasBlog 2.3.9074.18820

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

Join WebHost4Life.com