aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src
diff options
context:
space:
mode:
authorGravatar Jon Skeet <jonskeet@google.com>2015-09-29 13:37:15 +0100
committerGravatar Jon Skeet <jonskeet@google.com>2015-09-29 13:37:15 +0100
commit2212f56bcdfd5d830a18a3c4aaecb0a6ad564e54 (patch)
tree5b05d3a46db8d4ade5dfdd6b044b98e25f6262d7 /csharp/src
parent0e5686a70768a289782eb1e1aa86646e56897e4d (diff)
Added documentation to generated code.
There are now summaries for: - The Types nested class (which holds nested types) - The file descriptor class for each proto - The enum generated for each oneof (Also fixed two typos.) Generated code in next commit.
Diffstat (limited to 'csharp/src')
-rw-r--r--csharp/src/Google.Protobuf/CodedInputStream.cs2
-rw-r--r--csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/csharp/src/Google.Protobuf/CodedInputStream.cs b/csharp/src/Google.Protobuf/CodedInputStream.cs
index 82c6ceab..65d0e710 100644
--- a/csharp/src/Google.Protobuf/CodedInputStream.cs
+++ b/csharp/src/Google.Protobuf/CodedInputStream.cs
@@ -38,7 +38,7 @@ using System.IO;
namespace Google.Protobuf
{
/// <summary>
- /// Readings and decodes protocol message fields.
+ /// Reads and decodes protocol message fields.
/// </summary>
/// <remarks>
/// <para>
diff --git a/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs
index 901cbf47..619a6ac8 100644
--- a/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs
+++ b/csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs
@@ -252,7 +252,7 @@ namespace Google.Protobuf.Reflection
{
if (fieldType != FieldType.Message)
{
- throw new InvalidOperationException("MessageType is only valid for enum fields.");
+ throw new InvalidOperationException("MessageType is only valid for message fields.");
}
return messageType;
}