how to compile unsafe code in c#

how to compile unsafe code in c#

turn on unsafe build option in visual studio:

1. Open the project's Properties page.

2. Click the Build property page.

3.Select the Allow Unsafe Code check box.