I want use unsafe
block code in c#, how to enable my project to understand it?
My Project is .Net 6
CodePudding user response:
First you must add this tag to your project file
then write code like :
unsafe {
int x = 100;
int* pinter = &x;
}