Example #1
0
        private void ProcessFile(string path)
        {
            PolicyHelper policyHelper = new PolicyHelper();

            using (var reader = new StreamReader(path))
            {
                reader.ReadLine();
                while (!reader.EndOfStream)
                {
                    var    line   = reader.ReadLine();
                    Policy policy = new Policy(line);
                    policyHelper.SetPolicyType(policy);
                    myData.Add(policy);
                }
            }
        }