ReadMessage() 공개 메소드

Message that was correctly read, or null if end of stream found
public ReadMessage ( ) : Message
리턴 Message
예제 #1
0
 /// <summary>
 /// Read messages from this message block
 /// </summary>
 public IEnumerable<Message> ReadMessages()
 {
     using (var reader = new MessageReader(new BinaryMemoryStream(Data)))
     {
         Message message;
         while ((message = reader.ReadMessage()) != null)
             yield return message;
     }
 }
예제 #2
0
 /// <summary>
 /// Read messages from this message block
 /// </summary>
 public IEnumerable <Message> ReadMessages()
 {
     using (var reader = new MessageReader(new BinaryMemoryStream(Data)))
     {
         Message message;
         while ((message = reader.ReadMessage()) != null)
         {
             yield return(message);
         }
     }
 }