public static void Write(this Lidgren.Network.NetOutgoingMessage om, string[] array) { if (array == null) { om.WriteVariableUInt32(0); } else { om.WriteVariableUInt32((uint)array.Length); foreach (var s in array) { om.Write(s); } } }