From 2212f56bcdfd5d830a18a3c4aaecb0a6ad564e54 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Tue, 29 Sep 2015 13:37:15 +0100 Subject: 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. --- csharp/src/Google.Protobuf/CodedInputStream.cs | 2 +- csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'csharp/src') 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 { /// - /// Readings and decodes protocol message fields. + /// Reads and decodes protocol message fields. /// /// /// 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; } -- cgit v1.2.3