diff options
author | Jon Skeet <skeet@pobox.com> | 2008-08-14 20:35:24 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2008-08-14 20:35:24 +0100 |
commit | ba02091ef822ffa9248fdd6450703e5ff045838e (patch) | |
tree | 9ca66f702a890ec4f8740a69857d87cf6e439280 /csharp/ProtocolBuffers/Descriptors/MessageDescriptor.cs | |
parent | bef2caf5e49dbcf6b926d01cfb0948dedee49c93 (diff) | |
download | protobuf-ba02091ef822ffa9248fdd6450703e5ff045838e.tar.gz protobuf-ba02091ef822ffa9248fdd6450703e5ff045838e.tar.bz2 protobuf-ba02091ef822ffa9248fdd6450703e5ff045838e.zip |
New unit tests and corresponding bug fixes.
Diffstat (limited to 'csharp/ProtocolBuffers/Descriptors/MessageDescriptor.cs')
-rw-r--r-- | csharp/ProtocolBuffers/Descriptors/MessageDescriptor.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/csharp/ProtocolBuffers/Descriptors/MessageDescriptor.cs b/csharp/ProtocolBuffers/Descriptors/MessageDescriptor.cs index b733fb93..02343937 100644 --- a/csharp/ProtocolBuffers/Descriptors/MessageDescriptor.cs +++ b/csharp/ProtocolBuffers/Descriptors/MessageDescriptor.cs @@ -34,6 +34,13 @@ namespace Google.ProtocolBuffers.Descriptors { } /// <value> + /// If this is a nested type, get the outer descriptor, otherwise null. + /// </value> + public MessageDescriptor ContainingType { + get { return containingType; } + } + + /// <value> /// An unmodifiable list of this message type's fields. /// </value> public IList<FieldDescriptor> Fields { |