Deliberately call simple code to avoid Unity linker pruning
The SampleEnumMethod method was previously only called via reflection, so the Unity linker thought it could be removed. Ditto the parameterless constructor in ReflectionHelper. This PR should avoid that issue, reducing the work needed by customers to use Google.Protobuf from Unity.
Showing
Please
register
or
sign in
to comment