Won't fix Override index operator of custom class raises `SecurityException`

mrmr32

Well-known member
Messages
123
Reactions
317
Points
63
Website
github.com
Patreon
mrmr32
Following this post about overriding the `[]` operator in C# raises a `SecurityException`. I know there's other ways to do it (eg. the Java way with a setter), but as this is a C# core feature you should be able to use it.
Code:
Compile of Custom/Scripts/mrmr32/GenderSwapper/GenderSwapper.cslist failed. Exception: System.Security.SecurityException: Security Check Failed (NamespaceRestriction) [...] The namespace 'System.Reflection' is prohibited and cannot be referenced
 
Back
Top Bottom