Unsafe code may only appear if compiling with /unsafe
using System;namespace Main { class Program { static void Main(string[] args) { int a = 12; int b = 21; Console.WriteLine("a: {0} || b: {1}", a, b); Console.WriteLine("a: {0} || b: {1}", a, b); } unsafe void Swap(int* a, int* b) { int temp; temp = *b; *b = *a; *a = *b; } }}