aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf/ByteString.cs
diff options
context:
space:
mode:
authorGravatar Jon Skeet <jonskeet@google.com>2015-08-03 11:08:53 +0100
committerGravatar Jon Skeet <jonskeet@google.com>2015-08-03 11:30:15 +0100
commit0e0e0c97e7d5a70b3307c2fcea8793983b6e0680 (patch)
tree00f2d3938d3efd08057024143a7afea36786a008 /csharp/src/Google.Protobuf/ByteString.cs
parentbf1cc9217a486cf68c2705d4f307fddb73291004 (diff)
Expose Coded*Stream constructors directly.
Diffstat (limited to 'csharp/src/Google.Protobuf/ByteString.cs')
-rw-r--r--csharp/src/Google.Protobuf/ByteString.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf/ByteString.cs b/csharp/src/Google.Protobuf/ByteString.cs
index 329f47f6..cf5468d2 100644
--- a/csharp/src/Google.Protobuf/ByteString.cs
+++ b/csharp/src/Google.Protobuf/ByteString.cs
@@ -203,7 +203,7 @@ namespace Google.Protobuf
public CodedInputStream CreateCodedInput()
{
// We trust CodedInputStream not to reveal the provided byte array or modify it
- return CodedInputStream.CreateInstance(bytes);
+ return new CodedInputStream(bytes);
}
public static bool operator ==(ByteString lhs, ByteString rhs)