public static bool TryMergeFieldFrom<TTarget>(ref ExtensionSet<TTarget> set, CodedInputStream stream)
where TTarget : IExtendableMessage<TTarget>
Tries to merge a field from the coded input, returning true if the field was merged.
If the set is null or the field was not otherwise merged, this returns false.
public static bool TryMergeFieldFrom<TTarget>(ref ExtensionSet<TTarget> set, ref ParseContext ctx)
where TTarget : IExtendableMessage<TTarget>
Tries to merge a field from the coded input, returning true if the field was merged.
If the set is null or the field was not otherwise merged, this returns false.
[[["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-03-21 UTC."],[[["This page documents the `ExtensionSet` class in the `Google.Protobuf` namespace, which provides methods for managing `ExtensionSet\u003cTTarget\u003e` instances with null checking."],["The `ExtensionSet` class is primarily for internal use, with its API being experimental and subject to change, thus most users are not meant to interact with it directly."],["`ExtensionSet` provides methods for clearing, cloning, getting, setting, merging, and checking for the existence of extensions within a set."],["The class also includes methods to merge fields from a `CodedInputStream` or `ParseContext` into the `ExtensionSet`, making it useful for parsing and managing serialized data."],["The current documented version of `ExtensionSet` is 3.15.8, but the latest available version is 3.27.1, along with the option of using version 3.23.0."]]],[]]