コード例 #1
0
 PTXWriterState RequirePop(PTXWriterStateType requiredType)
 {
     if (this.states.Peek().State == requiredType)
     {
         return(PopState());
     }
     else
     {
         throw PropertyTreesFailure.WouldCreateMalformedDocument();
     }
 }
コード例 #2
0
 PTXWriterState RequirePeek(PTXWriterStateType requiredType)
 {
     if (this.states.Peek().State == requiredType)
     {
         return(this.states.Peek());
     }
     else
     {
         throw PropertyTreesFailure.WriterIncorrectState(this.WriteState);
     }
 }
コード例 #3
0
 PTXWriterState RequirePop(PTXWriterStateType requiredType)
 {
     if (this.states.Peek().State == requiredType)
         return PopState();
     else
         throw PropertyTreesFailure.WouldCreateMalformedDocument();
 }
コード例 #4
0
 PTXWriterState RequirePeek(PTXWriterStateType requiredType)
 {
     if (this.states.Peek().State == requiredType) {
         return this.states.Peek();
     } else
         throw PropertyTreesFailure.WriterIncorrectState(this.WriteState);
 }