Silverlight compatibility other than SortedList
diff --git a/src/ProtocolBuffers/CodedInputStream.cs b/src/ProtocolBuffers/CodedInputStream.cs
index e652af0..ab0d32e 100644
--- a/src/ProtocolBuffers/CodedInputStream.cs
+++ b/src/ProtocolBuffers/CodedInputStream.cs
@@ -160,8 +160,12 @@
     /// Read a double field from the stream.
     /// </summary>
     public double ReadDouble() {
-      // TODO(jonskeet): Test this on different endiannesses
+#if SILVERLIGHT2
+      byte[] bytes = ReadRawBytes(8);
+      return BitConverter.ToDouble(bytes, 0);
+#else
       return BitConverter.Int64BitsToDouble((long) ReadRawLittleEndian64());
+#endif
     }
 
     /// <summary>