public static bool VerifyUnmanaged (CompilerContext ctx, TypeSpec t, Location loc)
{
while (t.IsPointer)
t = GetElementType (t);
if (IsUnmanagedType (t))
return true;
ctx.Report.SymbolRelatedToPreviousError (t);
ctx.Report.Error (208, loc,
"Cannot take the address of, get the size of, or declare a pointer to a managed type `{0}'",
CSharpName (t));
return false;
}
#region Generics