I get the warning like this If you know what it is, please explain & help me to get rid of it. Nam.
In your AssemblyInfo.cs file, you've probably got a line that reads
[assembly:CLSCompliant(true)]
If you do, then the following rules must be met. (Copy-Pasta from http://www.devarticles.com/c/a/C-Sharp/Making-Your-Code-CLS-Compliant/)
Unsigned types should not be part of the public interface of the class. What this means is public fields should not have unsigned types like uint or ulong, public methods should not return unsigned types, parameters passed to public function should not have unsigned types. However unsigned types can be part of private members.
Unsafe types like pointers should not be used with public members. However they can be used with private members.
Class names and member names should not differ only based on their case. For example we cannot have two methods named MyMethod and MYMETHOD.
Only properties and methods may be overloaded, Operators should not be overloaded.
1.4m articles
1.4m replys
5 comments
57.0k users