Skip to content

Commit a97aeb7

Browse files
authored
Fix incorrect parameter references in ToBase64Transform (dotnet#10412)
1 parent fe3ab19 commit a97aeb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xml/System.Security.Cryptography/ToBase64Transform.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,13 @@ For more information about `Dispose` and `Finalize`, see [Cleaning Up Unmanaged
732732
</remarks>
733733
<exception cref="T:System.ObjectDisposedException">The current <see cref="T:System.Security.Cryptography.ToBase64Transform" /> object has already been disposed.</exception>
734734
<exception cref="T:System.Security.Cryptography.CryptographicException">The data size is not valid.</exception>
735-
<exception cref="T:System.ArgumentException">The <paramref name="inputBuffer" /> parameter contains an invalid offset length.
735+
<exception cref="T:System.ArgumentException">The <paramref name="inputOffset" /> parameter contains an invalid offset length.
736736

737737
-or-
738738

739739
The <paramref name="inputCount" /> parameter contains an invalid value.</exception>
740740
<exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is <see langword="null" />.</exception>
741-
<exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="inputBuffer" /> parameter requires a non-negative number.</exception>
741+
<exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="inputCount" /> parameter requires a non-negative number and less than or equal to the length of <paramref name="inputBuffer"/>.</exception>
742742
<related type="Article" href="/dotnet/standard/security/cryptographic-services">Cryptographic Services</related>
743743
</Docs>
744744
</Member>
@@ -812,13 +812,13 @@ For more information about `Dispose` and `Finalize`, see [Cleaning Up Unmanaged
812812
]]></format>
813813
</remarks>
814814
<exception cref="T:System.ObjectDisposedException">The current <see cref="T:System.Security.Cryptography.ToBase64Transform" /> object has already been disposed.</exception>
815-
<exception cref="T:System.ArgumentException">The <paramref name="inputBuffer" /> parameter contains an invalid offset length.
815+
<exception cref="T:System.ArgumentException">The <paramref name="inputOffset" /> parameter contains an invalid offset length.
816816

817817
-or-
818818

819819
The <paramref name="inputCount" /> parameter contains an invalid value.</exception>
820820
<exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is <see langword="null" />.</exception>
821-
<exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="inputBuffer" /> parameter requires a non-negative number.</exception>
821+
<exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="inputCount" /> parameter requires a non-negative number and less than or equal to the length of <paramref name="inputBuffer"/>.</exception>
822822
<related type="Article" href="/dotnet/standard/security/cryptographic-services">Cryptographic Services</related>
823823
</Docs>
824824
</Member>

0 commit comments

Comments
 (0)