My teacher has passed a series of exercises and in them I need to create a code to give the error AccessViolationException
. But I am not able to create a code that from this error (I do not want to do the error handling).
I need something to insert inside try
.
try{
//código que retorna o erro
}catch(AccessViolationException ex){
Console.WriteLine(ex);
}