private static int Year = 2019;
FirstProject.Models.MyClass.setYear(2020);
public static class MyClass { private static int Year = 2019; public static void setYear(int year) { Year = year; } public static int getYear() { return Year; } }
static
public static class MyClass { public static int getYear() { return DateTime.Now.Year; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)