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."],[[["The latest version of the `Extension\u003cTTarget, TValue\u003e` class is 3.27.1, which is used as a type-safe extension identifier for getting and setting single extension values in `IExtendableMessage\u003cT\u003e` instances."],["This API is designated as experimental and is subject to future modifications or changes."],["The `Extension\u003cTTarget, TValue\u003e` class inherits from the `Extension` class and ultimately from the `object` class, inheriting methods like `Equals`, `GetHashCode`, and `ToString`."],["It is within the `Google.Protobuf` namespace and part of the `Google.Protobuf.dll` assembly, with type parameters `TTarget` defining the message type and `TValue` defining the field value type."],["The `Extension` class has a constructor `Extension(int fieldNumber, FieldCodec\u003cTValue\u003e codec)` for creating a new extension identifier using a specified field number and codec."]]],[]]