Exemplo n.º 1
0
        public static SecurityModel FromFile(string Filename)
        {
            SecurityModel securityModel = new SecurityModel();

            string[] lines = File.ReadAllLines(Filename, Encoding.Default);

            Array.ForEach(lines, line => securityModel.Add(CecurityCriterion.Parse(line)));

            return(securityModel);
        }
Exemplo n.º 2
0
 public void Add(CecurityCriterion saveClass) => safeCriterions.Add(saveClass);