servicepoint/crates/servicepoint_binding_cs/ServicePoint/Command.cs
2024-10-19 14:45:21 +02:00

17 lines
356 B
C#

using System.Diagnostics.CodeAnalysis;
namespace ServicePoint;
public sealed partial class Command
{
public static bool TryFromPacket(Packet packet, [MaybeNullWhen(false)] out Command command)
{
return (command = TryFromPacket(packet)) != null;
}
public Packet IntoPacket()
{
return Packet.FromCommand(this);
}
}