class Outer { class Inner // Nested class { .........; ........; } }
class MyClass { // Brace statement1; // Semicolon statement2; }
6 + 8
fixed (char* pointer = 1) { //Our code }
int x = default(int);//will be assigned to 0.
foreach (char ch in "Hello") { Console.WriteLine(ch); // prints all characters }
[DllImport("User32.dll", CharSet = CharSet.Unicode)] public static extern int MessageBox(IntPtr i, string s1, string s2, int type); static int Main() { string Name; Console.WriteLine("Please type your message here: "); Name = Console.ReadLine(); return MessageBox((IntPtr)0, Name, "Message Box", 0); }
static async Task<int> FuncAsync() { ..........; ......; }