static PacketOperationManager() { foreach (Type PacketType in Assembly.GetEntryAssembly().GetTypes()) { if (PacketType.GetCustomAttributes(typeof(PacketOperationAttribute), true).Length.Equals(3)) { continue; } ReadPacketAttribute(PacketType); } }