Using Visual Studio 2015 with the Xamarin extension, It seems to exhibit a strange behavior, when it comes to using unsafe code.
I have enabled the Unsafe code option in the project properties. Yet, I still get the IDE error, probably coming from intellisense. The code builds fine, however.
I found here, that for ASP.NET web projects, you can/should set the
Allow unsafe code
otherwise - in the web.config file. So for Xamarin, am I doing something wrong, or is it just the IDE bug ?