enum color : int { red = -3, green, blue } Console.Write( (int) color.red + ", "); Console.Write( (int) color.green + ", "); Console.Write( (int) color.blue );
class Sample { static int i; int j; public void proc1() { i = 11; j = 22; } public static void proc2() { i = 1; j = 2; } static Sample() { i = 0; j = 0; } }
struct Emp { private String name; private int age; private Single sal; }
Sample m = new Sample();
int l;
l = m.Length;
Sample m = new Sample();
m.Length = m.Length + 20;
Sample.Length = 20;
Console.WriteLine (Sample.Length);
Sample m = new Sample();
m.Length = 10;
Sample m = new Sample();
m.Length = 10;
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.