Ejemplo n.º 1
0
        public void Load(BinaryReader reader)
        {
            // Clear current configuration
            Profiles.Clear();

            // Get number of profiles
            int count = reader.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                // Get firewall profile
                FirewallProfile profile = FirewallProfile.Parse(reader);

                // If profile has no scored properties, skip
                if (profile.Properties.Count == 0)
                {
                    continue;
                }

                // Add profile to list
                Profiles.Add(profile);
            }
        }