Skip to content

Commit 15f209b

Browse files
authored
Fix some System.Formats.Asn1 documentation mistakes
1 parent 814894c commit 15f209b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/libraries/System.Formats.Asn1/src/System/Formats/Asn1/AsnDecoder.BitString.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ public partial class AsnReader
689689
/// corresponding to the value of the BIT STRING.
690690
/// </param>
691691
/// <param name="expectedTag">
692-
/// The tag to check for before reading, or <see langword="null"/> for the default tag (Universal 1).
692+
/// The tag to check for before reading, or <see langword="null"/> for the default tag (Universal 3).
693693
/// </param>
694694
/// <returns>
695695
/// <see langword="true"/> and advances the reader if the BIT STRING value had a primitive encoding,
@@ -752,7 +752,7 @@ public bool TryReadPrimitiveBitString(
752752
/// On success, receives the number of bytes written to <paramref name="destination"/>.
753753
/// </param>
754754
/// <param name="expectedTag">
755-
/// The tag to check for before reading, or <see langword="null"/> for the default tag (Universal 1).
755+
/// The tag to check for before reading, or <see langword="null"/> for the default tag (Universal 3).
756756
/// </param>
757757
/// <returns>
758758
/// <see langword="true"/> and advances the reader if <paramref name="destination"/> had sufficient
@@ -810,7 +810,7 @@ public bool TryReadBitString(
810810
/// "unused" by the writer.
811811
/// </param>
812812
/// <param name="expectedTag">
813-
/// The tag to check for before reading, or <see langword="null"/> for the default tag (Universal 1).
813+
/// The tag to check for before reading, or <see langword="null"/> for the default tag (Universal 3).
814814
/// </param>
815815
/// <returns>
816816
/// A copy of the value in a newly allocated, precisely sized, array.

src/libraries/System.Formats.Asn1/src/System/Formats/Asn1/AsnDecoder.Enumerated.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ public static TEnum ReadEnumeratedValue<TEnum>(
174174
///
175175
/// -or-
176176
///
177-
/// <paramref name="enumType"/>.<see cref="Asn1Tag.TagClass"/> is
177+
/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagClass"/> is
178178
/// <see cref="TagClass.Universal"/>, but
179-
/// <paramref name="enumType"/>.<see cref="Asn1Tag.TagValue"/> is not correct for
179+
/// <paramref name="expectedTag"/>.<see cref="Asn1Tag.TagValue"/> is not correct for
180180
/// the method.
181181
/// </exception>
182182
/// <exception cref="ArgumentNullException">
@@ -265,7 +265,7 @@ public static Enum ReadEnumeratedValue(
265265
public partial class AsnReader
266266
{
267267
/// <summary>
268-
/// Reads the next value as a Enumerated with a specified tag, returning the contents
268+
/// Reads the next value as an Enumerated with a specified tag, returning the contents
269269
/// as a <see cref="ReadOnlyMemory{T}"/> over the original data.
270270
/// </summary>
271271
/// <param name="expectedTag">

src/libraries/System.Formats.Asn1/src/System/Formats/Asn1/AsnDecoder.UtcTime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static partial class AsnDecoder
2323
/// The default value, 2049, represents the 1950-2049 range for X.509 certificates.
2424
/// </param>
2525
/// <param name="expectedTag">
26-
/// The tag to check for before reading, or <see langword="null"/> for the default tag (Universal 24).
26+
/// The tag to check for before reading, or <see langword="null"/> for the default tag (Universal 23).
2727
/// </param>
2828
/// <returns>
2929
/// The decoded value.

0 commit comments

Comments
 (0)