Example #1
0
 /// <summary>
 /// Throws an error that the current type is not alowed in safe mode.
 /// </summary>
 protected void SafeModeCheckType(Context ctx, Type type)
 {
     if(!ctx.IsTypeAllowed(type))
         Error(CompilerMessages.SafeModeIllegalType, type.FullName);
 }