Example #1
0
        private static void TestCreatePacket(PacketKeys packetKey)
        {
            Console.WriteLine($"Program.TestCreatePacket: packetKey={packetKey}");

            var packet = PacketFactory.CreatePacket(packetKey);

            if (packet != null)
            {
                Console.WriteLine($"Packet created: key={packetKey}, description={packet.Description}");
            }
            else
            {
                Console.WriteLine($"Can't find packet key: key={packetKey}");
            }
        }