aboutsummaryrefslogtreecommitdiff
path: root/src/ProtocolBuffers/WireFormat.cs
diff options
context:
space:
mode:
authorcsharptest <roger@csharptest.net>2011-06-02 12:04:06 -0500
committerrogerk <devnull@localhost>2011-06-02 12:04:06 -0500
commit27bfcc5e1a7a3aacd828475c1996e114e34055d2 (patch)
tree8a4d0adf6cab44a934c21a7656fc8226b81556fc /src/ProtocolBuffers/WireFormat.cs
parent45a93fad4d7123887d14135ee15ee3e9b0d4ca58 (diff)
downloadprotobuf-27bfcc5e1a7a3aacd828475c1996e114e34055d2.tar.gz
protobuf-27bfcc5e1a7a3aacd828475c1996e114e34055d2.tar.bz2
protobuf-27bfcc5e1a7a3aacd828475c1996e114e34055d2.zip
Slight refactoring of Extensions to support lookup by name, added compatibility tests for text and binary formats.
Diffstat (limited to 'src/ProtocolBuffers/WireFormat.cs')
-rw-r--r--src/ProtocolBuffers/WireFormat.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ProtocolBuffers/WireFormat.cs b/src/ProtocolBuffers/WireFormat.cs
index 53a5c826..328d7bc0 100644
--- a/src/ProtocolBuffers/WireFormat.cs
+++ b/src/ProtocolBuffers/WireFormat.cs
@@ -35,12 +35,8 @@
#endregion
using System;
-
-#if !LITE
using Google.ProtocolBuffers.Descriptors;
-#endif
-
namespace Google.ProtocolBuffers
{
/// <summary>
@@ -146,6 +142,7 @@ namespace Google.ProtocolBuffers
return descriptor.IsPacked ? WireType.LengthDelimited : GetWireType(descriptor.FieldType);
}
+#endif
/// <summary>
/// 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.
@@ -190,6 +187,5 @@ namespace Google.ProtocolBuffers
throw new ArgumentOutOfRangeException("No such field type");
}
}
-#endif
}
} \ No newline at end of file