title: Run C# code on linux terminal
body: <p>How can I execute a C# code on a linux terminal as a shell script.</p>
  
  <p>I have this sample code:</p>
  
  <pre><code>public string Check(string _IPaddress,string _Port, int _SmsID)
  {
  ClassGlobal._client = new TcpClient(_IPaddress, Convert.ToInt32(_Port));
  ClassGlobal.SMSID = _SmsID;
  string _result = SendToCAS(_IPaddress, _Port, _SmsID );
  if (_result != "") return (_result);
  string _acoknoledgement = GetFromCAS();
  return _acoknoledgement;
  }
  </code></pre>
  
  <p>When I run a shell bash I use <code>#!/bin/bash</code>. There is how to do the same with C#?</p>