Exécuter le code C # sur le terminal Linux

Comment puis-je exécuter un code C# sur un terminal linux comme un script shell.

J'ai cet exemple de 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;
}

Quand je lance un shell bash-je utiliser #!/bin/bash. Il est comment faire la même chose avec C#?

source d'informationauteur Hedron Dantas