public Marshaller(Action<T, SerializationContext> serializer, Func<DeserializationContext, T> deserializer)
Initializes a new marshaller from serialize/deserialize fuctions that can access serialization and deserialization
context. Compared to the simple serializer/deserializer functions, using the contextual version provides more
flexibility and can lead to increased efficiency (and better performance).
Note: This constructor is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eMarshaller<T>\u003c/code\u003e is a class in the \u003ccode\u003eGrpc.Core\u003c/code\u003e namespace that handles the serialization and deserialization of messages.\u003c/p\u003e\n"],["\u003cp\u003eIt provides two constructors, one using functions that access serialization and deserialization contexts for increased flexibility and efficiency, and another using simpler serialize/deserialize functions.\u003c/p\u003e\n"],["\u003cp\u003eThe class exposes four properties, \u003ccode\u003eContextualDeserializer\u003c/code\u003e, \u003ccode\u003eContextualSerializer\u003c/code\u003e, \u003ccode\u003eDeserializer\u003c/code\u003e, and \u003ccode\u003eSerializer\u003c/code\u003e, which provide access to the respective serialization and deserialization functions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eContextualSerializer\u003c/code\u003e and \u003ccode\u003eContextualDeserializer\u003c/code\u003e are considered part of an experimental API.\u003c/p\u003e\n"]]],[],null,[]]