Edit naming of parameters in Extension classes

pull/6431/head
Sydney Acksman 5 years ago committed by Jan Tattermusch
parent 5995d723bc
commit 0c044c798e
  1. 8
      csharp/src/Google.Protobuf/Extension.cs

@ -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;
} }

Loading…
Cancel
Save