In this post, you’ll learn all the C# compiler error and warnings from the code CS3001 to CS4000.
C# Compiler Error Codes CS3001 to CS4000
Error Code | Type | Error/Warning Description |
---|---|---|
CS3001 | Warning | Argument type ‘{0}’ is not CLS-compliant |
CS3002 | Warning | Return type of ‘{0}’ is not CLS-compliant |
CS3003 | Warning | Type of ‘{0}’ is not CLS-compliant |
CS3005 | Warning | Identifier ‘{0}’ differing only in case is not CLS-compliant |
CS3006 | Warning | Overloaded method ‘{0}’ differing only in ref or out, or in array rank, is not CLS-compliant |
CS3007 | Warning | Overloaded method ‘{0}’ differing only by unnamed array types is not CLS-compliant |
CS3008 | Warning | Identifier ‘{0}’ is not CLS-compliant |
CS3009 | Warning | ‘{0}’: base type ‘{1}’ is not CLS-compliant |
CS3010 | Warning | ‘{0}’: CLS-compliant interfaces must have only CLS-compliant members |
CS3011 | Warning | ‘{0}’: only CLS-compliant members can be abstract |
CS3012 | Warning | You must specify the CLSCompliant attribute on the assembly, not the module, to enable CLS compliance checking |
CS3013 | Warning | Added modules must be marked with the CLSCompliant attribute to match the assembly |
CS3014 | Warning | ‘{0}’ cannot be marked as CLS-compliant because the assembly does not have a CLSCompliant attribute |
CS3015 | Warning | ‘{0}’ has no accessible constructors which use only CLS-compliant types |
CS3016 | Warning | Arrays as attribute arguments is not CLS-compliant |
CS3017 | Warning | You cannot specify the CLSCompliant attribute on a module that differs from the CLSCompliant attribute on the assembly |
CS3018 | Warning | ‘{0}’ cannot be marked as CLS-compliant because it is a member of non-CLS-compliant type ‘{1}’ |
CS3019 | Warning | CLS compliance checking will not be performed on ‘{0}’ because it is not visible from outside this assembly |
CS3021 | Warning | ‘{0}’ does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute |
CS3022 | Warning | CLSCompliant attribute has no meaning when applied to parameters. Try putting it on the method instead. |
CS3023 | Warning | CLSCompliant attribute has no meaning when applied to return types. Try putting it on the method instead. |
CS3024 | Warning | Constraint type ‘{0}’ is not CLS-compliant |
CS3026 | Warning | CLS-compliant field ‘{0}’ cannot be volatile |
CS3027 | Warning | ‘{0}’ is not CLS-compliant because base interface ‘{1}’ is not CLS-compliant |
CS3028 | Fatal | Algorithm ‘{0}’ is not supported |