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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eExtensionSet\u003c/code\u003e is a static class within the \u003ccode\u003eGoogle.Protobuf\u003c/code\u003e namespace that provides methods for managing \u003ccode\u003eExtensionSet<TTarget>\u003c/code\u003e instances with null checking.\u003c/p\u003e\n"],["\u003cp\u003eMost users will not directly interact with this \u003ccode\u003eExtensionSet\u003c/code\u003e class, as its API is experimental and may change.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExtensionSet\u003c/code\u003e class includes methods such as \u003ccode\u003eClear\u003c/code\u003e, \u003ccode\u003eClone\u003c/code\u003e, \u003ccode\u003eGet\u003c/code\u003e, \u003ccode\u003eHas\u003c/code\u003e, \u003ccode\u003eMergeFrom\u003c/code\u003e, and \u003ccode\u003eSet\u003c/code\u003e to manipulate and retrieve data from the \u003ccode\u003eExtensionSet<TTarget>\u003c/code\u003e data structure.\u003c/p\u003e\n"],["\u003cp\u003eThere are methods to handle repeated extensions using \u003ccode\u003eRepeatedExtension\u003c/code\u003e and \u003ccode\u003eRepeatedField\u003c/code\u003e, such as \u003ccode\u003eGetOrInitialize\u003c/code\u003e for obtaining a value or creating one if needed, or \u003ccode\u003eClear\u003c/code\u003e to remove its value.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003eTryMergeFieldFrom\u003c/code\u003e assist in merging fields from a \u003ccode\u003eCodedInputStream\u003c/code\u003e or a \u003ccode\u003eParseContext\u003c/code\u003e into the set, and returns true if successful, or false otherwise.\u003c/p\u003e\n"]]],[],null,[]]