I may want to pass in the contexts to the custom handlers, rather than the readers and writers. Reason is, it may be possible that a custom handler needs to invoke another custom handler.
To be clear, this means that on IGeneratorSerializableCustomization, GeneratorFormatterReaderContext and GeneratorFormatterWriterContext are passed into GetCustomState() and SetCustomState() respectively, instead of BinaryReader and BinaryWriter.
I may want to pass in the contexts to the custom handlers, rather than the readers and writers. Reason is, it may be possible that a custom handler needs to invoke another custom handler.
To be clear, this means that on
IGeneratorSerializableCustomization,GeneratorFormatterReaderContextandGeneratorFormatterWriterContextare passed intoGetCustomState()andSetCustomState()respectively, instead ofBinaryReaderandBinaryWriter.