473,804 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2365
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 interoperabilit y because the code depends on a feature
only guaranteed to have support in the current language.

This error also means the CLSCompliant(tr ue) 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.c om...
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 interoperabilit y because the code depends on a feature
only guaranteed to have support in the current language.

This error also means the CLSCompliant(tr ue) 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
2444
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 don't do the job.
2
1792
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 superclass of type. I could not get this function to work right until I realized that it is searching the entire MRO, not just the superclasses of 'type'. Here is a simple experiment to show the difference.
25
4654
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 QBasic's "goto" ? Secondly, how do I clear screen (cls) from text and other content ? And last, how do I put program to wait certain amount of seconds ? If I remeber correctly I used to type "Wait 10" and QBasic waits 10 seconds before proceeding...
1
1503
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: function OnLoadFunc() { if(document.Form1.elements.value == 'regd')
1
2023
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 dataset looks like this: public string _ISO_3166_A2 { ....
0
2701
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) which should be supported by all .net language. to be common data type in all language is neccesary condition but its not suffiicient. means to say common data type may be 1 of the specs but it's not all. and cls means all common specs.
22
4247
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 of these options seem to work. my conclusion is that a python program that is executing does not use the shell (because it does not recognize shell aliases). is this correct?
1
1201
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
21578
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
27498
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, if there are no differences, then can we use them interchangebly?
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10354
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10359
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10101
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3005
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.