What is an unsafe modifier in C# programming language?

 Posted by Goud.Kv on 9/1/2014 | Category: C# Interview questions | Views: 213 | Points: 40
Answer:

unsafe modifier is used to denote unsafe context which is generally required for some pointer operations. Example,

public unsafe void Function()  // unsafe Method

{
int x, y; // unsafe context
..........; // we can use pointers here.
}


Asked In: Spotted While Learning | Alert Moderator 

Comments or Responses

Login to post response