Initial commit
Conversion of the UWP app into a .NET Core app for portability. Requires .NET Core 2.0 and C# 7.1
This commit is contained in:
14
ExtensionMethods.cs
Normal file
14
ExtensionMethods.cs
Normal file
@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user