Files
dotnet-screenlogic/ExtensionMethods.cs
Parnic 97c4febdf5 Initial commit
Conversion of the UWP app into a .NET Core app for portability. Requires .NET Core 2.0 and C# 7.1
2018-03-18 23:04:19 -05:00

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);
}
}
}