Conversion of the UWP app into a .NET Core app for portability. Requires .NET Core 2.0 and C# 7.1
15 lines
337 B
C#
15 lines
337 B
C#
using System;
|
|
using System.Net.Sockets;
|
|
|
|
namespace ScreenLogicConnect
|
|
{
|
|
static class ExtensionMethods
|
|
{
|
|
public static void SendHLMessage(this NetworkStream stream, Messages.HLMessage msg)
|
|
{
|
|
var arr = msg.asByteArray();
|
|
stream.Write((byte[])(Array)arr, 0, arr.Length);
|
|
}
|
|
}
|
|
}
|