public void ShortIsSentForShortEnum() { MyShort shortEnum = MyShort.G; writer.Write(shortEnum); // should only be 1 byte Assert.That(writer.ByteLength, Is.EqualTo(2)); }
public void ShortIsSentForShortEnum() { MyShort shortEnum = MyShort.G; var writer = new NetworkWriter(); writer.Write(shortEnum); // should only be 1 byte Assert.That(writer.Length, Is.EqualTo(2)); }
public void SomeMethod() { MyShort[] array = new MyShort[2]; array[0] = new MyShort { Value = 5 }; array[1] = new MyShort { Value = 2 }; array[0].Value = 3; }
public Task <short> SubShortTask(MyShort data) { return(Task.FromResult(data.Data)); }