|
|
@ -44,9 +44,9 @@ namespace Google.Protobuf |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// Internal use. Creates a new extension with the specified field number. |
|
|
|
/// Internal use. Creates a new extension with the specified field number. |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
protected Extension(int number) |
|
|
|
protected Extension(int fieldNumber) |
|
|
|
{ |
|
|
|
{ |
|
|
|
FieldNumber = number; |
|
|
|
FieldNumber = fieldNumber; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
internal abstract IExtensionValue CreateValue(); |
|
|
|
internal abstract IExtensionValue CreateValue(); |
|
|
@ -69,7 +69,7 @@ namespace Google.Protobuf |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// Creates a new extension identifier with the specified field number and codec |
|
|
|
/// Creates a new extension identifier with the specified field number and codec |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public Extension(int number, FieldCodec<TValue> codec) : base(number) |
|
|
|
public Extension(int fieldNumber, FieldCodec<TValue> codec) : base(fieldNumber) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.codec = codec; |
|
|
|
this.codec = codec; |
|
|
|
} |
|
|
|
} |
|
|
@ -96,7 +96,7 @@ namespace Google.Protobuf |
|
|
|
/// <summary> |
|
|
|
/// <summary> |
|
|
|
/// Creates a new repeated extension identifier with the specified field number and codec |
|
|
|
/// Creates a new repeated extension identifier with the specified field number and codec |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
public RepeatedExtension(int number, FieldCodec<TValue> codec) : base(number) |
|
|
|
public RepeatedExtension(int fieldNumber, FieldCodec<TValue> codec) : base(fieldNumber) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this.codec = codec; |
|
|
|
this.codec = codec; |
|
|
|
} |
|
|
|
} |
|
|
|