protobuf/csharp/protos
Jon Skeet 1711999078 Provide simple access to descriptor declarations in C#
This is primarily for access to comments, which would be expected to be available in a protoc plugin.

The implementation has two fiddly aspects:

- We use a Lazy<T> to avoid building the map before cross-linking. An alternative would be to crosslink at the end of the constructor, and remove the calls to CrossLink elsewhere. This would be generally better IMO, but deviate from the Java code.
- The casts to IReadOnlyList<DescriptorBase> are unfortunate. They'll always work, because these lists are always ReadOnlyCollection<T> for a descriptor type... but we can't use IList<DescriptorBase> as that's not covariant, and it's annoyingly fiddly to change the field to be of type ReadOnlyCollection<T>.
2018-09-22 09:09:15 +01:00
..
map_unittest_proto3.proto Remove non-C# options from C#-only test protos 2017-11-14 07:31:59 +00:00
README.md Move C#-only test protos to csharp/protos 2017-11-12 15:29:15 +00:00
unittest_custom_options_proto3.proto Add Oneof custom options test 2017-01-27 11:52:32 -08:00
unittest_import_proto3.proto Remove non-C# options from C#-only test protos 2017-11-14 07:31:59 +00:00
unittest_import_public_proto3.proto Remove non-C# options from C#-only test protos 2017-11-14 07:31:59 +00:00
unittest_issues.proto Replace repo links. 2018-08-22 11:55:30 -07:00
unittest_proto3.proto Provide simple access to descriptor declarations in C# 2018-09-22 09:09:15 +01:00

This directory contains unit test protos adapted from those in src/google/protobuf, and C#-specific test protos for regression tests against bugs found in the C# codegen or library.