InvalidEndTag() статический приватный Метод

static private InvalidEndTag ( ) : InvalidProtocolBufferException
Результат InvalidProtocolBufferException
 private static void CheckLastTagWas(ref ParserInternalState state, uint expectedTag)
 {
     if (state.lastTag != expectedTag)
     {
         throw InvalidProtocolBufferException.InvalidEndTag();
     }
 }
Пример #2
0
 /// <summary>
 /// Verifies that the last call to ReadTag() returned the given tag value.
 /// This is used to verify that a nested group ended with the correct
 /// end tag.
 /// </summary>
 /// <exception cref="InvalidProtocolBufferException">The last
 /// tag read was not the one specified</exception>
 internal void CheckLastTagWas(uint value)
 {
     if (lastTag != value)
     {
         throw InvalidProtocolBufferException.InvalidEndTag();
     }
 }