Procházet zdrojové kódy

added comment for ByteString.CopyFrom

Jan Tattermusch před 10 roky
rodič
revize
b4a24aa5fa
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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)
         {