diff options
author | Jon Skeet <jonskeet@google.com> | 2015-07-01 17:19:48 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-07-09 08:26:06 +0100 |
commit | af259b77bf04fcfb68609776cb27f04d289a2c39 (patch) | |
tree | 3e5434199a9c59b8556e9267fb9eb7b73211f8c5 /csharp/src/ProtocolBuffers/Descriptors/PackageDescriptor.cs | |
parent | 5350822b0a923287bc23375a10c2f3cb07cff5fb (diff) | |
download | protobuf-af259b77bf04fcfb68609776cb27f04d289a2c39.tar.gz protobuf-af259b77bf04fcfb68609776cb27f04d289a2c39.tar.bz2 protobuf-af259b77bf04fcfb68609776cb27f04d289a2c39.zip |
Fix descriptor reflection in various ways
- The protos are no longer publicly exposed at all
- Oneof detection now works (as we default to -1, not 0)
- OneofDescriptor exposes the fields in the oneof
- Removed unnecessary code for replacing protos - remnant of extensions
- There's now just the non-generic form of IDescriptor
Diffstat (limited to 'csharp/src/ProtocolBuffers/Descriptors/PackageDescriptor.cs')
-rw-r--r-- | csharp/src/ProtocolBuffers/Descriptors/PackageDescriptor.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/csharp/src/ProtocolBuffers/Descriptors/PackageDescriptor.cs b/csharp/src/ProtocolBuffers/Descriptors/PackageDescriptor.cs index 9af677d7..18adc9e3 100644 --- a/csharp/src/ProtocolBuffers/Descriptors/PackageDescriptor.cs +++ b/csharp/src/ProtocolBuffers/Descriptors/PackageDescriptor.cs @@ -37,7 +37,7 @@ namespace Google.Protobuf.Descriptors /// just as placeholders so that someone cannot define, say, a message type
/// that has the same name as an existing package.
/// </summary>
- internal sealed class PackageDescriptor : IDescriptor<IMessage>
+ internal sealed class PackageDescriptor : IDescriptor
{
private readonly string name;
private readonly string fullName;
@@ -50,11 +50,6 @@ namespace Google.Protobuf.Descriptors this.name = name;
}
- public IMessage Proto
- {
- get { return file.Proto; }
- }
-
public string Name
{
get { return name; }
|