Unverified Commit 37823175 authored by Jan Tattermusch's avatar Jan Tattermusch Committed by GitHub

Merge pull request #6669 from ObsidianMinor/csharp/fix-comments

Fix incorrect Proto2 C# doc comments
parents 2a465797 c54ff8d0
...@@ -77,7 +77,7 @@ namespace Google.Protobuf.Reflection ...@@ -77,7 +77,7 @@ namespace Google.Protobuf.Reflection
public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber); public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber);
/// <summary> /// <summary>
/// Gets a single value enum option for this descriptor /// Gets a single value enum value option for this descriptor
/// </summary> /// </summary>
public T GetOption<T>(Extension<EnumValueOptions, T> extension) public T GetOption<T>(Extension<EnumValueOptions, T> extension)
{ {
...@@ -86,7 +86,7 @@ namespace Google.Protobuf.Reflection ...@@ -86,7 +86,7 @@ namespace Google.Protobuf.Reflection
} }
/// <summary> /// <summary>
/// Gets a repeated value enum option for this descriptor /// Gets a repeated value enum value option for this descriptor
/// </summary> /// </summary>
public RepeatedField<T> GetOption<T>(RepeatedExtension<EnumValueOptions, T> extension) public RepeatedField<T> GetOption<T>(RepeatedExtension<EnumValueOptions, T> extension)
{ {
......
...@@ -302,7 +302,7 @@ namespace Google.Protobuf.Reflection ...@@ -302,7 +302,7 @@ namespace Google.Protobuf.Reflection
public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber); public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber);
/// <summary> /// <summary>
/// Gets a single value enum option for this descriptor /// Gets a single value field option for this descriptor
/// </summary> /// </summary>
public T GetOption<T>(Extension<FieldOptions, T> extension) public T GetOption<T>(Extension<FieldOptions, T> extension)
{ {
...@@ -311,7 +311,7 @@ namespace Google.Protobuf.Reflection ...@@ -311,7 +311,7 @@ namespace Google.Protobuf.Reflection
} }
/// <summary> /// <summary>
/// Gets a repeated value enum option for this descriptor /// Gets a repeated value field option for this descriptor
/// </summary> /// </summary>
public RepeatedField<T> GetOption<T>(RepeatedExtension<FieldOptions, T> extension) public RepeatedField<T> GetOption<T>(RepeatedExtension<FieldOptions, T> extension)
{ {
......
...@@ -545,7 +545,7 @@ namespace Google.Protobuf.Reflection ...@@ -545,7 +545,7 @@ namespace Google.Protobuf.Reflection
public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber); public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber);
/// <summary> /// <summary>
/// Gets a single value enum option for this descriptor /// Gets a single value file option for this descriptor
/// </summary> /// </summary>
public T GetOption<T>(Extension<FileOptions, T> extension) public T GetOption<T>(Extension<FileOptions, T> extension)
{ {
...@@ -554,7 +554,7 @@ namespace Google.Protobuf.Reflection ...@@ -554,7 +554,7 @@ namespace Google.Protobuf.Reflection
} }
/// <summary> /// <summary>
/// Gets a repeated value enum option for this descriptor /// Gets a repeated value file option for this descriptor
/// </summary> /// </summary>
public RepeatedField<T> GetOption<T>(RepeatedExtension<FileOptions, T> extension) public RepeatedField<T> GetOption<T>(RepeatedExtension<FileOptions, T> extension)
{ {
......
...@@ -264,7 +264,7 @@ namespace Google.Protobuf.Reflection ...@@ -264,7 +264,7 @@ namespace Google.Protobuf.Reflection
public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber); public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber);
/// <summary> /// <summary>
/// Gets a single value enum option for this descriptor /// Gets a single value message option for this descriptor
/// </summary> /// </summary>
public T GetOption<T>(Extension<MessageOptions, T> extension) public T GetOption<T>(Extension<MessageOptions, T> extension)
{ {
...@@ -273,7 +273,7 @@ namespace Google.Protobuf.Reflection ...@@ -273,7 +273,7 @@ namespace Google.Protobuf.Reflection
} }
/// <summary> /// <summary>
/// Gets a repeated value enum option for this descriptor /// Gets a repeated value message option for this descriptor
/// </summary> /// </summary>
public Collections.RepeatedField<T> GetOption<T>(RepeatedExtension<MessageOptions, T> extension) public Collections.RepeatedField<T> GetOption<T>(RepeatedExtension<MessageOptions, T> extension)
{ {
......
...@@ -77,7 +77,7 @@ namespace Google.Protobuf.Reflection ...@@ -77,7 +77,7 @@ namespace Google.Protobuf.Reflection
public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber); public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber);
/// <summary> /// <summary>
/// Gets a single value enum option for this descriptor /// Gets a single value method option for this descriptor
/// </summary> /// </summary>
public T GetOption<T>(Extension<MethodOptions, T> extension) public T GetOption<T>(Extension<MethodOptions, T> extension)
{ {
...@@ -86,7 +86,7 @@ namespace Google.Protobuf.Reflection ...@@ -86,7 +86,7 @@ namespace Google.Protobuf.Reflection
} }
/// <summary> /// <summary>
/// Gets a repeated value enum option for this descriptor /// Gets a repeated value method option for this descriptor
/// </summary> /// </summary>
public RepeatedField<T> GetOption<T>(RepeatedExtension<MethodOptions, T> extension) public RepeatedField<T> GetOption<T>(RepeatedExtension<MethodOptions, T> extension)
{ {
......
...@@ -109,7 +109,7 @@ namespace Google.Protobuf.Reflection ...@@ -109,7 +109,7 @@ namespace Google.Protobuf.Reflection
public CustomOptions CustomOptions => new CustomOptions(proto.Options._extensions?.ValuesByNumber); public CustomOptions CustomOptions => new CustomOptions(proto.Options._extensions?.ValuesByNumber);
/// <summary> /// <summary>
/// Gets a single value enum option for this descriptor /// Gets a single value oneof option for this descriptor
/// </summary> /// </summary>
public T GetOption<T>(Extension<OneofOptions, T> extension) public T GetOption<T>(Extension<OneofOptions, T> extension)
{ {
...@@ -118,7 +118,7 @@ namespace Google.Protobuf.Reflection ...@@ -118,7 +118,7 @@ namespace Google.Protobuf.Reflection
} }
/// <summary> /// <summary>
/// Gets a repeated value enum option for this descriptor /// Gets a repeated value oneof option for this descriptor
/// </summary> /// </summary>
public RepeatedField<T> GetOption<T>(RepeatedExtension<OneofOptions, T> extension) public RepeatedField<T> GetOption<T>(RepeatedExtension<OneofOptions, T> extension)
{ {
......
...@@ -98,7 +98,7 @@ namespace Google.Protobuf.Reflection ...@@ -98,7 +98,7 @@ namespace Google.Protobuf.Reflection
public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber); public CustomOptions CustomOptions => new CustomOptions(Proto.Options._extensions?.ValuesByNumber);
/// <summary> /// <summary>
/// Gets a single value enum option for this descriptor /// Gets a single value service option for this descriptor
/// </summary> /// </summary>
public T GetOption<T>(Extension<ServiceOptions, T> extension) public T GetOption<T>(Extension<ServiceOptions, T> extension)
{ {
...@@ -107,7 +107,7 @@ namespace Google.Protobuf.Reflection ...@@ -107,7 +107,7 @@ namespace Google.Protobuf.Reflection
} }
/// <summary> /// <summary>
/// Gets a repeated value enum option for this descriptor /// Gets a repeated value service option for this descriptor
/// </summary> /// </summary>
public RepeatedField<T> GetOption<T>(RepeatedExtension<ServiceOptions, T> extension) public RepeatedField<T> GetOption<T>(RepeatedExtension<ServiceOptions, T> extension)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment