title: function to calculate Block Check Character(BCC) in C#
body: <p>Block Check Character(BCC)
  I need a function to calculate Block Check Character(BCC) in C#.
  01 30 02 4D 21 20 20 03
  This is the string, how do I calculate "Block Check Character" for this string.</p>
  
  <p>BCC = Exclusive OR from SOH to ETX
  SOH   ID   STX   CODE   ETX       BCC
  0x01 0x30 0x02   0x40   0x03 </p>
  
  <p>I need to add BCC and send data to COM.
  If possible Please give me a function so that I can send "01 30 02 4D 21 20 20 03" and get the BCC.</p>
  
  <p>Thanks</p>