Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Dispose()

void System.Formats.Asn1.AsnWriter.Scope.Dispose ( )
inline

Implements System.IDisposable.

Definition at line 106 of file AsnWriter.cs.

107 {
108 if (_writer == null || _writer._nestingStack.Count == 0)
109 {
110 return;
111 }
112 if (_writer._nestingStack.Peek() == _frame)
113 {
114 switch (_frame.ItemType)
115 {
116 case UniversalTagNumber.Set:
118 break;
119 case UniversalTagNumber.Sequence:
121 break;
122 case UniversalTagNumber.OctetString:
124 break;
125 default:
126 throw new InvalidOperationException();
127 }
128 }
130 {
132 }
133 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void PopOctetString(Asn1Tag? tag=null)
Definition AsnWriter.cs:898
Stack< StackFrame > _nestingStack
Definition AsnWriter.cs:140
void PopSetOf(Asn1Tag? tag=null)
void PopSequence(Asn1Tag? tag=null)
static string AsnWriter_PopWrongTag
Definition SR.cs:44
Definition SR.cs:7

References System.Formats.Asn1.AsnWriter.Scope._depth, System.Formats.Asn1.AsnWriter.Scope._frame, System.Formats.Asn1.AsnWriter._nestingStack, System.Formats.Asn1.AsnWriter.Scope._writer, System.SR.AsnWriter_PopWrongTag, System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Formats.Asn1.AsnWriter.StackFrame.ItemType, System.Formats.Asn1.AsnWriter.PopOctetString(), System.Formats.Asn1.AsnWriter.PopSequence(), System.Formats.Asn1.AsnWriter.PopSetOf(), and System.Formats.Asn1.AsnWriter.StackFrame.Tag.