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"]],[["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 document outlines the `Extension\u003cTTarget, TValue\u003e` class, which serves as a type-safe identifier for managing single extension values within `IExtendableMessage\u003cT\u003e` instances."],["The `Extension\u003cTTarget, TValue\u003e` class is considered experimental and may be subject to future changes."],["It inherits from the `Extension` class and ultimately the `Object` class, including `Extension.FieldNumber` as an inherited member."],["The class constructor, `Extension(int fieldNumber, FieldCodec\u003cTValue\u003e codec)`, allows the creation of a new extension identifier by specifying a field number and codec."],["The class is located within the `Google.Protobuf` namespace and is part of the `Google.Protobuf.dll` assembly."]]],[]]