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; } }
Sample.Length = 20;
Sample m = new Sample(); m.Length = 10;
Console.WriteLine(Sample.Length);
Sample m = new Sample(); int len; len = m.Length;
Sample m = new Sample(); m.Length = m.Length + 20;
interface IMyInterface { void fun1(); void fun2(); } class MyClass: IMyInterface { private int i; void IMyInterface.fun1() { // Some code } }
int i, j = 1, k; for (i = 0; i < 5; i++) { k = j++ + ++j; Console.Write(k + " "); }
namespace CuriousTabConsoleApplication { struct Sample { public int i; } class MyProgram { static void Main(string[] args) { Sample x = new Sample(); x.i = 10; fun(ref x); Console.Write(x.i + " "); } public static void fun(ref Sample y) { y.i = 20; Console.Write(y.i + " "); } } }
int[][][] intMyArr = new int[2][][];
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.