Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Error 1 Unsafe code may only appear if compiling with /unsafe Program.cs 12 28 Project-244


public unsafe void Main()
Posted

1 solution

Go to your Project properties and under Configuration Properties, Click on build and then change Allow Unsafe Code blocks to true.

Well, if needed read more about how to use unsafe here: Using Unsafe Code in C#[^]
 
Share this answer
 
Comments
Nish Nishant 8-Aug-10 20:55pm    
Reason for my vote of 5
Proposed answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900