• Jon Skeet's avatar
    Tidy up reflection in advance of attempting to implement DynamicMessage. · 72ec3367
    Jon Skeet authored
    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.
    72ec3367
FieldDescriptor.cs 14.8 KB