aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/WireFormat.cs
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-04-29 12:20:12 +0100
committerJon Skeet <jonskeet@google.com>2015-04-29 12:21:54 +0100
commitf015b860b74f1f7a5dc1a9fbf8b30daf7539d669 (patch)
treeec2829d6f679a864138abb2f96863ae285292ba5 /csharp/src/ProtocolBuffers/WireFormat.cs
parent5e0189ab94a33568f9d270cce7706d97a17f0341 (diff)
downloadprotobuf-f015b860b74f1f7a5dc1a9fbf8b30daf7539d669.tar.gz
protobuf-f015b860b74f1f7a5dc1a9fbf8b30daf7539d669.tar.bz2
protobuf-f015b860b74f1f7a5dc1a9fbf8b30daf7539d669.zip
Remove CLS compliance from runtime code.
We need to remove it from the generator too; I'll raise a github issue for that.
Diffstat (limited to 'csharp/src/ProtocolBuffers/WireFormat.cs')
-rw-r--r--csharp/src/ProtocolBuffers/WireFormat.cs7
1 files changed, 0 insertions, 7 deletions
diff --git a/csharp/src/ProtocolBuffers/WireFormat.cs b/csharp/src/ProtocolBuffers/WireFormat.cs
index a03f1652..b9daa328 100644
--- a/csharp/src/ProtocolBuffers/WireFormat.cs
+++ b/csharp/src/ProtocolBuffers/WireFormat.cs
@@ -63,7 +63,6 @@ namespace Google.ProtocolBuffers
#endregion
- [CLSCompliant(false)]
public enum WireType : uint
{
Varint = 0,
@@ -95,13 +94,11 @@ namespace Google.ProtocolBuffers
/// <summary>
/// Given a tag value, determines the wire type (lower 3 bits).
/// </summary>
- [CLSCompliant(false)]
public static WireType GetTagWireType(uint tag)
{
return (WireType) (tag & TagTypeMask);
}
- [CLSCompliant(false)]
public static bool IsEndGroupTag(uint tag)
{
return (WireType) (tag & TagTypeMask) == WireType.EndGroup;
@@ -110,7 +107,6 @@ namespace Google.ProtocolBuffers
/// <summary>
/// Given a tag value, determines the field number (the upper 29 bits).
/// </summary>
- [CLSCompliant(false)]
public static int GetTagFieldNumber(uint tag)
{
return (int) tag >> TagTypeBits;
@@ -120,14 +116,12 @@ namespace Google.ProtocolBuffers
/// Makes a tag value given a field number and wire type.
/// TODO(jonskeet): Should we just have a Tag structure?
/// </summary>
- [CLSCompliant(false)]
public static uint MakeTag(int fieldNumber, WireType wireType)
{
return (uint) (fieldNumber << TagTypeBits) | (uint) wireType;
}
#if !LITE
- [CLSCompliant(false)]
public static uint MakeTag(FieldDescriptor field)
{
return MakeTag(field.FieldNumber, GetWireType(field));
@@ -148,7 +142,6 @@ namespace Google.ProtocolBuffers
/// Converts a field type to its wire type. Done with a switch for the sake
/// of speed - this is significantly faster than a dictionary lookup.
/// </summary>
- [CLSCompliant(false)]
public static WireType GetWireType(FieldType fieldType)
{
switch (fieldType)