Show/Hide Toolbars

XSharp

Overloaded method 'method' differing only by unnamed array types is not CLS-compliant

 

This error occurs if you have an overloaded method that takes a jagged array and the only difference between the method signatures is the element type of the array. To avoid this error, consider using a rectangular array rather than a jagged array; use an additional parameter to disambiguate the function call; rename one or more of the overloaded methods; or, if CLS Compliance is not needed, remove the CLSCompliantAttribute attribute. For more information on CLS Compliance, see Language Independence and Language-Independent Components.

Example

 

The following example generates XS3007:

 

 

// XS3007.prg