@@ -411,8 +411,7 @@ public void MoveNextCurrentLevelAndExpectTags(params Byte[] expectedTags) {
411411 /// method must be called prior to first call of this method. Subsequent <strong>BuildOffsetMap</strong>
412412 /// method calls are not necessary.
413413 /// </remarks>
414- [ Obsolete ( "This method contains a typo. Use MoveToPosition instead." ) ]
415- public Boolean MoveToPoisition ( Int32 newPosition ) {
414+ public Boolean MoveToPosition ( Int32 newPosition ) {
416415 if ( _offsetMap == null ) {
417416 throw new InvalidOperationException ( ) ;
418417 }
@@ -424,22 +423,6 @@ public Boolean MoveToPoisition(Int32 newPosition) {
424423 return true ;
425424 }
426425 /// <summary>
427- /// Moves to a specified start offset.
428- /// </summary>
429- /// <param name="newPosition">ASN structure start position (offset).</param>
430- /// <returns>
431- /// <strong>True</strong> if specified offset is valid and pointer was successfully set to specified position,
432- /// otherwise <strong>False</strong>.
433- /// </returns>
434- /// <remarks>
435- /// Specified position validity is determined based on internal map and <see cref="BuildOffsetMap"/>
436- /// method must be called prior to first call of this method. Subsequent <strong>BuildOffsetMap</strong>
437- /// method calls are not necessary.
438- /// </remarks>
439- public Boolean MoveToPosition ( Int32 newPosition ) {
440- return MoveToPoisition ( newPosition ) ;
441- }
442- /// <summary>
443426 /// Moves to the beginning of the file.
444427 /// </summary>
445428 public void Reset ( ) {
@@ -490,7 +473,7 @@ public static String GetTagName(Byte tag) {
490473 if ( ( tag & ( Byte ) Asn1Class . PRIVATE ) != 0 ) {
491474 switch ( tag & ( Byte ) Asn1Class . PRIVATE ) {
492475 case ( Byte ) Asn1Class . CONTEXT_SPECIFIC :
493- return $ "CONTEXT_SPECIFIC ( { index } ) ";
476+ return $ "CONTEXT_SPECIFIC [ { index } ] ";
494477 case ( Byte ) Asn1Class . APPLICATION :
495478 return $ "APPLICATION ({ index } )";
496479 case ( Byte ) Asn1Class . PRIVATE :
0 commit comments