-2

As I read about naming convection in asp.net Here

Use Camel Case for variables and method parameters

So i should use camel case naming for variables and method parameters but I don't know why visual studio warn me about these names:

public class Ad
    {
        public DateTime? startTimeLimitation { get; set; }
        public DateTime? endTimeLimitaion { get; set; }
        public Payment payment { get; set; }
    }

As fix name violation

So should I Ignore this warnings or I missed something about naming convection?

Iman Fakhari
  • 83
  • 1
  • 2
  • 8

1 Answers1

1

use camel case for local variables and pascal case for class level variables like

public class MyClass
{
    public DateTime? StartTimeLimitation { get; set; }

    void MyMethod()
    {
        int localVariable = 0;
        //some other code
    }
}
Fakhar Ahmad Rasul
  • 1,595
  • 1
  • 19
  • 37