3 ms·
You can replace code generation used for serialization with open delegates, and that should work without any special runtime magic: https://github.com/naasking
by naasking 6y ago
You can replace code generation used for serialization with open delegates, and that should work without any special runtime magic:
https://github.com/naasking/HigherLogics.Google.Datastore/blob/master/HigherLogics.Google.Datastore/PropertyMapper.cs https://github.com/naasking/HigherLogics.Google.Datastore/bl...
Constructors are the only odd duck for which there is no efficient alternative. You either generate a delegate at runtime to call the right constructor, or you have to use reflection/Activate.CreateInstance.