Overloaded method 'method' differing only in ref or out is not CLS-compliant
A method cannot be overloaded based on the ref or out parameter and be compliant with the Common Language Subset (CLS).
The following sample generates CS3006:
using System; [assembly: CLSCompliant(true)] public class MyClass { public void f(int i) { } public void f(ref int i) { // CS3006 } public static void Main() { } }
To resolve this error, comment out the assembly-level attribute or remove one of the method definitions.