Violation of CLS rule Same naming

suggest change
using System;

[assembly:CLSCompliant(true)]
namespace CLSDoc
{
   
    public class Car
    {
        //Warning    CS3005    Identifier 'Car.CALCULATEAge()' differing only in case is not CLS-compliant
        public int CalculateAge()
        {
            return 0;
        }

        public int CALCULATEAge()
        {
            return 0;
        }

    }
}

Visual Basic is not case sensitive

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents