diff options
author | Jie Luo <anandolee@gmail.com> | 2015-05-29 17:19:46 -0700 |
---|---|---|
committer | Jie Luo <anandolee@gmail.com> | 2015-05-29 17:19:46 -0700 |
commit | 802e1848ada7d95e867b178314ee89629680c771 (patch) | |
tree | d33bc7c6b42955601e290909e47bcb273292b30d /csharp/src/ProtocolBuffers/IMessage.cs | |
parent | 252daef02beb27dfb271af8c191102bd24ffd3e3 (diff) | |
parent | f7b417ddfe63cb4d39775e5fd4560894cc547d65 (diff) | |
download | protobuf-802e1848ada7d95e867b178314ee89629680c771.tar.gz protobuf-802e1848ada7d95e867b178314ee89629680c771.tar.bz2 protobuf-802e1848ada7d95e867b178314ee89629680c771.zip |
Merge pull request #404 from anandolee/master
Add oneof support for c#
Diffstat (limited to 'csharp/src/ProtocolBuffers/IMessage.cs')
-rw-r--r-- | csharp/src/ProtocolBuffers/IMessage.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/csharp/src/ProtocolBuffers/IMessage.cs b/csharp/src/ProtocolBuffers/IMessage.cs index c23bc3f7..dd309d4e 100644 --- a/csharp/src/ProtocolBuffers/IMessage.cs +++ b/csharp/src/ProtocolBuffers/IMessage.cs @@ -67,6 +67,10 @@ namespace Google.ProtocolBuffers /// </summary>
IDictionary<FieldDescriptor, object> AllFields { get; }
+ bool HasOneof(OneofDescriptor oneof);
+
+ FieldDescriptor OneofFieldDescriptor(OneofDescriptor oneof);
+
/// <summary>
/// Returns true if the given field is set. This is exactly equivalent
/// to calling the generated "Has" property corresponding to the field.
|