False: There is facility to add 'unmanaged' code in C# which need not be CLS compliant.

2 Users have rated as useful.
Login to rate this answer.
Vishal
Answered On : Aug 6th, 2006
The answer is A). As far as i know, CLR control only the managed code. But .NET supports to do a communication with unmanaged code. But all the code that runs within .NET is managed code.Managed codes are CLS complient because they are written in either of the .NET complient language.Let me know if i am wrong on vishal.joshi1@gmail.com.Thanks,Vishal.
Login to rate this answer.
Suba
Answered On : Feb 1st, 2007
this article in MSDN http://msdn2.microsoft.com/en-us/library/bhc3fa7f(VS.80).aspx says"You can mark assemblies, modules, types, and members as either CLS-compliant or not CLS compliant using the CLSCompliantAttribute."

2 Users have rated as useful.
Login to rate this answer.
A. True
Login to rate this answer.
The .NET Framework provides a run-time environment called the common language runtime.
Login to rate this answer.
Ravi Kumar
Answered On : Dec 3rd, 2011
False
All .Net code need not be CLS compliant if you are going to write all modules using single .Net language. However, if you are going to use different .Net language for different modules then you have to mark the public functions as CLS-compliant otherwise you can use full feature of a .NET language( like C#, VB.NET) without being CLS compliant.

1 User has rated as useful.
Login to rate this answer.
Not required. If you want your code to be CLS complaint use the annotation CLScompliant(true)
Login to rate this answer.