public static void Close() { MsGUdp ret; if(_gates!=null) { lock(_gates) { if(_gates.Count>0 && (ret=(_gates[0] as MsGUdp))!=null) { ret.Stop(); } } } } #endregion static