private void sendGloObject <T>(ref T gloData, Glo.IDs ID) where T : struct { GloObject <T> gloObject = new GloObject <T>(ID) { data = gloData }; try { link.send <T>(gloObject); } catch (TimeoutException) { logAndDisplayMessage("Port write timed out", MessageSource.UI); } }
public GloObject(Glo.IDs ID) { this.ID = (byte)ID; }