<PackageReference Include="Google.Protobuf" Version="3.35.1" />

Google.Protobuf.ExtensionRegistry

Provides extensions to messages while parsing.
public int Count { get; }

Gets the total number of extensions in this extension registry

Creates a new empty extension registry

public void Add(Extension extension)

Adds the specified extension to the registry

public void AddRange(IEnumerable<Extension> extensions)

Adds the specified extensions to the registry

public void Clear()

Clears the registry of all values

Clones the registry into a new registry

public bool Contains(Extension item)

Gets whether the extension registry contains the specified extension

Returns an enumerator to enumerate through the items in the registry

public bool Remove(Extension item)

Removes the specified extension from the set