473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

CLS-Compliant?

pnp
I tried to add an accessor into a class of an Interface of another class,
but the problem is that the compiler displays an error:

Type of 'A.B.C.IUsers' is not CLS-compliant
What does this mean?

-pnp
Nov 16 '05 #1
2 2343
Hi pnp:

The Common Language Specification (CLS) is a set of core language
features designed to be supported by every .NET language.

If you are writing a class library for a wide range of .NET customers,
CLS compliance is fairly important. If you are writing a library to
use in applications inside your company, CLS compliance can be less
important.

CLS compliant code will work with VB.NET or Python.NET or Cobol.NET,
and so on. If you are not CLS compliant, than you might have trouble
with language interoperability because the code depends on a feature
only guaranteed to have support in the current language.

This error also means the CLSCompliant(true) attribute is somewhere in
the code.

Hope this helps,

--
Scott
http://www.OdeToCode.com
On Sat, 14 Aug 2004 13:33:11 +0300, "pnp" <pnp.at.softlab.ece.ntua.gr>
wrote:
I tried to add an accessor into a class of an Interface of another class,
but the problem is that the compiler displays an error:

Type of 'A.B.C.IUsers' is not CLS-compliant
What does this mean?

-pnp


Nov 16 '05 #2
pnp
This helps a lot! thanks Scott.
"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:rs********************************@4ax.com...
Hi pnp:

The Common Language Specification (CLS) is a set of core language
features designed to be supported by every .NET language.

If you are writing a class library for a wide range of .NET customers,
CLS compliance is fairly important. If you are writing a library to
use in applications inside your company, CLS compliance can be less
important.

CLS compliant code will work with VB.NET or Python.NET or Cobol.NET,
and so on. If you are not CLS compliant, than you might have trouble
with language interoperability because the code depends on a feature
only guaranteed to have support in the current language.

This error also means the CLSCompliant(true) attribute is somewhere in
the code.

Hope this helps,

--
Scott
http://www.OdeToCode.com
On Sat, 14 Aug 2004 13:33:11 +0300, "pnp" <pnp.at.softlab.ece.ntua.gr>
wrote:
I tried to add an accessor into a class of an Interface of another class,
but the problem is that the compiler displays an error:

Type of 'A.B.C.IUsers' is not CLS-compliant
What does this mean?

-pnp

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
cls
by: Art McClure | last post by:
May I ask a dumb question? I am working with Python 2.3 IDLE. I want to completely clear the screen except for the ">>>", of course. What do I use? I have tried a number of suggestions, but they...
2
by: David MacQuigg | last post by:
I think there is a documentation error in both the Library Reference section 2.1 and the Python 2.2 Quick Reference page 19. The explanation for this function is: super( type) Returns the...
25
by: BOOGIEMAN | last post by:
I've just finished reading Python turtorial for non-programmers and I haven't found there anything about some usefull commands I used in QBasic. First of all, what's Python command equivalent to...
1
by: shefali | last post by:
Hi, I have an aspx page with a web form. I need to change the page that this form posts to depending on certain conditions. To do so, I have Javascript code on the page that looks like: ...
1
by: Oscar Thornell | last post by:
Hi! I have a strongly typed dataset based on a db (SQL Server)... One of the tables contains a column with name: ISO-3166-A2 and data type nchar(2)... The generated code (xsd.exe) in the...
0
by: manoj.sahu | last post by:
hi all, as per my study CLS is the common set of specification which should by meet by the language which want to target CLS(or .net). and CTS is the set of common types(or common data types)...
22
by: mp | last post by:
i have a python program which attempts to call 'cls' but fails: sh: line 1: cls: command not found i tried creating an alias from cls to clear in .profile, .cshrc, and /etc/profile, but none...
1
by: Smokey Grindle | last post by:
Is there a good explination of what would cause a CLS warrning in .NET 2.0 out there anywhere? like list of reasons and examples of what cause an object or type to not be CLS complaint? thanks!
3
by: james_027 | last post by:
hi, is cls & self the same thing? I have seen something like class A: def dosomething(cls): #doing something
9
AmberJain
by: AmberJain | last post by:
Hello, What is the difference between --------> 1. clrscr(); // defined in various header files 2. system("cls"); //available in stdio.h in bloodshed dev c++ Well,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.