title: Serial port communication in .NET
body: <p>I am using C# to receive data from a serial port but there are some problems. I'm new to this so I need some help.</p>
  
  <ol>
  <li><p>First off all I want to know which functions are event driven:</p>
  
  <pre>
  ReadExisting()
  Read()
  Readbyte() 
  Readchar()
  ReadLine()
  Readto()
  </pre></li>
  <li><p>How can I take the required data form input stream of this port?</p>
  
  <p>I have static sized protocols. Can I use a special char to specify limits of a protocol data, and which will be a suitable char for this?</p></li>
  <li><p>How do I handle this exception:</p>
  
  <blockquote>
    <p>C# SerialPort System.ObjectDisposedException, safe handle has been closed in System.DLL</p>
  </blockquote></li>
  </ol>