aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/ByteString.cs
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-06-23 11:54:19 +0100
committerJon Skeet <jonskeet@google.com>2015-06-23 12:42:20 +0100
commit6c1fe6ea3e4e3915fc4164c43230210f9a0ac24f (patch)
tree3acd6ea7eebd05c6e12958ec3cf901d098ad9b14 /csharp/src/ProtocolBuffers/ByteString.cs
parent45b70328f218dc2b3e20191c2cfa92872ef10d04 (diff)
downloadprotobuf-6c1fe6ea3e4e3915fc4164c43230210f9a0ac24f.tar.gz
protobuf-6c1fe6ea3e4e3915fc4164c43230210f9a0ac24f.tar.bz2
protobuf-6c1fe6ea3e4e3915fc4164c43230210f9a0ac24f.zip
Implement Clone.
Fixes issue #527.
Diffstat (limited to 'csharp/src/ProtocolBuffers/ByteString.cs')
-rw-r--r--csharp/src/ProtocolBuffers/ByteString.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/ProtocolBuffers/ByteString.cs b/csharp/src/ProtocolBuffers/ByteString.cs
index 000914f0..e3a7ee50 100644
--- a/csharp/src/ProtocolBuffers/ByteString.cs
+++ b/csharp/src/ProtocolBuffers/ByteString.cs
@@ -139,7 +139,7 @@ namespace Google.Protobuf
/// are copied, so further modifications to the array will not
/// be reflected in the returned ByteString.
/// </summary>
- public static ByteString CopyFrom(byte[] bytes)
+ public static ByteString CopyFrom(params byte[] bytes)
{
return new ByteString((byte[]) bytes.Clone());
}