Example #1
0
        public PatchMapper <T> Then(PatchMapper <T> then)
        {
            var mappings = new Dictionary <T, T>();

            foreach (T item in Enum.GetValues(typeof(T)))
            {
                mappings.Add(item, then.Map(Map(item)));
            }

            return(new PatchMapper <T>(mappings));
        }