aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/Reflection/GeneratedCodeInfo.cs
Commit message (Collapse)AuthorAgeFilesLines
* Rename GeneratedCodeInfo to GeneratedClrTypeInfoJon Skeet2016-02-041-103/+0
| | | | | | | Recently, descriptor.proto gained a GeneratedCodeInfo message, which means the generated code conflicts with our type. Unfortunately this affects codegen as well, although this is a part of the public API which is very unlikely to affect hand-written code. Generated code changes in next commit.
* Tidy up reflection in advance of attempting to implement DynamicMessage.Jon Skeet2015-11-221-5/+36
| | | | | | | | | There are corner cases where MessageDescriptor.{ClrType,Parser} will return null, and these are now documented. However, normally they *should* be implemented, even for descriptors of for dynamic messages. Ditto FieldDescriptor.Accessor. We'll still need a fair amount of work to implement dynamic messages, but this change means that the public API will be remain intact. Additionally, this change starts making use of C# 6 features in the files that it touches. This is far from exhaustive, and later PRs will have more. Generated code changes coming in the next commit.
* Introduce a Parser property into MessageDescriptor, and populate it from ↵Jon Skeet2015-11-191-2/+8
| | | | | | generated types. Generated code coming in next commit - in a subsequent PR I want to do a bit of renaming and redocumenting around this, in anticipation of DynamicMessage.
* Remove the usage of attributes for field/method discovery.Jon Skeet2015-07-221-0/+66
Instead, introduce GeneratedCodeInfo which passes in what we need, and adjust the codegen to take account of this.