소스 검색

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)
         {