1. 21 Feb, 2019 1 commit
  2. 22 Sep, 2018 1 commit
    • Jon Skeet's avatar
      Provide simple access to descriptor declarations in C# · 17119990
      Jon Skeet authored
      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>.
      17119990
  3. 22 Aug, 2018 1 commit
  4. 19 Dec, 2017 1 commit
  5. 13 Dec, 2017 1 commit
  6. 14 Nov, 2017 1 commit
  7. 12 Nov, 2017 1 commit
    • Jon Skeet's avatar
      Move C#-only test protos to csharp/protos · aa77eab6
      Jon Skeet authored
      unittest_proto3 had been changed in a very backward-incompatible
      way which was never going to work with C# as it imports proto2 messages.
      
      This is now a copy of the old file, but with a package name change for
      compatibility with the remaining files in src/google/protobuf.
      
      The other moves are for files that are only used by C#.
      aa77eab6
  8. 01 Nov, 2017 1 commit
    • Jon Skeet's avatar
      Fix merging with message-valued oneof · cbe25059
      Jon Skeet authored
      If messages A and B have the same oneof case, which is a message
      type, and we merge B into A, those sub-messages should be merged.
      
      Fixes #3200.
      
      Note that I haven't regenerated all the code, as some of the protos
      have been changed, breaking generation.
      cbe25059
  9. 27 Jan, 2017 1 commit
  10. 19 Jan, 2017 1 commit
    • Jon Skeet's avatar
      Support custom options in C# · 047575f2
      Jon Skeet authored
      This consists of:
      - Changing the codegen for the fixed set of options protos, to parse unknown fields instead of skipping them
      - Add a new CustomOptions type in the C# support library
      - Expose CustomOptions properties from the immutable proto wrappers in the support library
      
      Only single-value options are currently supported, and fetching options values requires getting the type right
      and knowing the field number. Both of these can be addressed at a later time.
      
      Fixes #2143, at least as a first pass.
      047575f2
  11. 29 Mar, 2016 1 commit
  12. 18 Mar, 2016 1 commit
  13. 03 Aug, 2015 2 commits
  14. 31 Jul, 2015 2 commits
  15. 29 Jun, 2015 1 commit
  16. 26 Jun, 2015 1 commit
    • Jon Skeet's avatar
      More cleanup, based around searches for "Google.ProtocolBuffers" · fb77cc9d
      Jon Skeet authored
      - Remove some old proto2-based C#-only messages
      - Remove the "build" directory which only contained out-of-date files
      - Remove the csharp_namespace option from proto2 messages
      - Change "Google.ProtocolBuffers" to "Google.Protobuf" in other messages
      fb77cc9d
  17. 09 Jun, 2015 1 commit
  18. 13 May, 2015 1 commit
  19. 01 May, 2015 1 commit
  20. 29 Apr, 2015 4 commits
  21. 28 Apr, 2015 1 commit
    • Jon Skeet's avatar
      Updated set of unit tests and unit test protos. · ce66c5f1
      Jon Skeet authored
      This commit includes changes to the C#-specific protos, and rebuilt versions of the "stock" protos.
      The stock protos have been locally updated to have a specific C# namespace, but this is expected to change soon, so hasn't been committed.
      Four areas are currently not tested:
      1) Serialization - we may restore this at some point, possibly optionally.
      2) Services - currently nothing is generated for this; will need to see how it interacts with GRPC
      3) Fields beginning with _{digit} - see https://github.com/google/protobuf/issues/308
      4) Fields with names which conflict with the declaring type in nasty ways - see https://github.com/google/protobuf/issues/309
      ce66c5f1
  22. 27 Apr, 2015 2 commits