public sealed class Extension<TTarget, TValue> : Extension where TTarget : IExtendableMessage<TTarget>
Represents a type-safe extension identifier used for getting and setting single extension values in IExtendableMessage<T> instances.
This API is experimental and subject to change.
[[["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\u003eThis document outlines the \u003ccode\u003eExtension<TTarget, TValue>\u003c/code\u003e class, a type-safe extension identifier used for managing single extension values in \u003ccode\u003eIExtendableMessage<T>\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eThe class is experimental and subject to change, and it inherits from \u003ccode\u003eExtension\u003c/code\u003e and ultimately from the base \u003ccode\u003eobject\u003c/code\u003e class, with accessible inherited members.\u003c/p\u003e\n"],["\u003cp\u003eIt belongs to the \u003ccode\u003eGoogle.Protobuf\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Protobuf.dll\u003c/code\u003e assembly, and version 3.23.0 is highlighted.\u003c/p\u003e\n"],["\u003cp\u003eIt uses two type parameters, \u003ccode\u003eTTarget\u003c/code\u003e to define the message type and \u003ccode\u003eTValue\u003c/code\u003e to define the extension's field value type.\u003c/p\u003e\n"],["\u003cp\u003eIt contains a constructor to create a new extension identifier with a specified field number and \u003ccode\u003eFieldCodec\u003c/code\u003e, with parameters like \u003ccode\u003efieldNumber\u003c/code\u003e and \u003ccode\u003ecodec\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]