Class ExtensionSet<TTarget>
Used for keeping track of extensions in messages. IExtendableMessage<T> methods route to this set.
Most users will not need to use this class directly
Inheritance
System.Object
ExtensionSet<TTarget>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf
Assembly: Google.Protobuf.dll
Syntax
public sealed class ExtensionSet<TTarget>
where TTarget : IExtendableMessage<TTarget>
Type Parameters
Name | Description |
---|---|
TTarget | The message type that extensions in this set target |
Methods
CalculateSize()
Calculates the size of this extension set
Declaration
public int CalculateSize()
Returns
Type | Description |
---|---|
System.Int32 |
Equals(Object)
Returns whether this set is equal to the other object
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Gets a hash code of the set
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
WriteTo(CodedOutputStream)
Writes the extension values in this set to the output stream
Declaration
public void WriteTo(CodedOutputStream stream)
Parameters
Type | Name | Description |
---|---|---|
CodedOutputStream | stream |