Pop Quiz!
Alright class. Pop quiz time. Say you have the following code:
namespace What { class The { public static void Heck(uint[] array) { if (typeof(uint) != array.GetValue(0).GetType()) { throw new PleaseExplainThisToMeException(); } } } }
Under what circumstances could you expect the "PleaseExplainThisToMeException" thrown?
Note: You should be able to make the exception get thrown by just
making a regular call to this in C# without any use of things like
unsafe code or the like.