瀏覽代碼

added comment for ByteString.CopyFrom

Jan Tattermusch 10 年之前
父節點
當前提交
b4a24aa5fa
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      csharp/src/ProtocolBuffers/ByteString.cs

+ 2 - 0
csharp/src/ProtocolBuffers/ByteString.cs

@@ -134,6 +134,8 @@ namespace Google.Protobuf
         /// Constructs a ByteString from the given array. The contents
         /// are copied, so further modifications to the array will not
         /// be reflected in the returned ByteString.
+        /// This method can also be invoked in <c>ByteString.CopyFrom(0xaa, 0xbb, ...)</c> form
+        /// which is primarily useful for testing.
         /// </summary>
         public static ByteString CopyFrom(params byte[] bytes)
         {