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."],[[["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."]]],[]]