mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
On Moonlight, ScriptObject types have custom (de)serialization methods that need to be called whenever a user object includes properties of that type. This patch creates a TypeMap subclass (ExternalTypeMap) and exposes a method that can be called from moon's System.Windows.Browser to register custom serialization and deserialization methods, keyed by type. These are called whenever a property is found with a type (or base type) that has custom methods registered.