diff options
author | Jon Skeet <skeet@pobox.com> | 2009-06-05 22:00:05 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2009-06-05 22:00:05 +0100 |
commit | d6dd0a45608ffc34d53a60cc3db33cb38e6c2a18 (patch) | |
tree | d3aa02f1cbea4437b404bc7aa77cbc02f7e398dd /src/ProtocolBuffers/Descriptors/FieldDescriptor.cs | |
parent | 0864d30b977e0ae90a111004f597d777ce3082ed (diff) | |
download | protobuf-d6dd0a45608ffc34d53a60cc3db33cb38e6c2a18.tar.gz protobuf-d6dd0a45608ffc34d53a60cc3db33cb38e6c2a18.tar.bz2 protobuf-d6dd0a45608ffc34d53a60cc3db33cb38e6c2a18.zip |
Add CLSCompliance.
Diffstat (limited to 'src/ProtocolBuffers/Descriptors/FieldDescriptor.cs')
-rw-r--r-- | src/ProtocolBuffers/Descriptors/FieldDescriptor.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ProtocolBuffers/Descriptors/FieldDescriptor.cs b/src/ProtocolBuffers/Descriptors/FieldDescriptor.cs index cd1477ac..7d99ed21 100644 --- a/src/ProtocolBuffers/Descriptors/FieldDescriptor.cs +++ b/src/ProtocolBuffers/Descriptors/FieldDescriptor.cs @@ -278,6 +278,10 @@ namespace Google.ProtocolBuffers.Descriptors { get { return fieldType; } } + public bool IsCLSCompliant { + get { return mappedType != MappedType.UInt32 && mappedType != MappedType.UInt64; } + } + public int FieldNumber { get { return Proto.Number; } } |