Skip to content

Commit f7ace01

Browse files
committed
renamed parameter
1 parent 568f0a5 commit f7ace01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Asn1Parser/Asn1Builder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,15 +591,15 @@ public Asn1Builder AddExplicit(Byte explicitTag, Func<Asn1Builder, Asn1Builder>
591591
/// Gets ASN.1-encoded byte array that represents current state of builder wrapped using outer ASN.1 type and returns new
592592
/// builder instance that contains current builder state.
593593
/// </summary>
594-
/// <param name="outerType">
594+
/// <param name="outerTag">
595595
/// Outer type to wrap current state of builder. Outer type must not by the type that is used in primitive form only.
596596
/// Default outer type is constructed SEQUENCE (0x30 or decimal 48).
597597
/// </param>
598598
/// <returns>
599599
/// A new instance of ASN.1 DER builder that contains the state of the current instance.
600600
/// </returns>
601-
public Asn1Builder Encode(Byte outerType = 0x30) {
602-
IEnumerable<Byte> encoded = Asn1Utils.Encode(_rawData.ToArray(), outerType);
601+
public Asn1Builder Encode(Byte outerTag = 0x30) {
602+
IEnumerable<Byte> encoded = GetEncoded(outerTag);
603603
_rawData.Clear();
604604
_rawData.AddRange(encoded);
605605
return new Asn1Builder(this);

0 commit comments

Comments
 (0)