I know that, a static property can persist its value as long as the application remains running. Will it be same for a private static field inside non static class
public class A
{
private static int B;
public int GetSession()
{
return B++;
}
}
In above class i have a private static field. Will calling GetSession() method will provide number of times the GetSession() accessed?