Пример #1
0
        public SubUnit GMapT <A>(MkT <A> lf)
        {
            Func <Dept, SubUnit>     fd = d => new SubUnit(lf.Apply(d));
            Func <Employee, SubUnit> fe = e => new SubUnit(lf.Apply(e));

            return(Match(fd, fe));
        }
Пример #2
0
 public Dept GMapT <A>(MkT <A> lf)
 {
     return(new Dept(lf.Apply(Name), lf.Apply(Manager), Units.Select(u => lf.Apply(u)).ToArray()));
 }
Пример #3
0
 public Parent GMapT <A>(MkT <A> lf)
 {
     return(new Parent(lf.Apply(_child)));
 }
Пример #4
0
 public Company GMapT <A>(MkT <A> lf)
 {
     return(new Company(Departments.Select(d => lf.Apply(d)).ToArray()));
 }
Пример #5
0
 public new Manager GMapT <A>(MkT <A> lf)
 {
     return(new Manager(lf.Apply(Salary), lf.Apply(Person)));
 }
Пример #6
0
 public Employee GMapT <A>(MkT <A> lf)
 {
     return(new Employee(lf.Apply(Salary), lf.Apply(Person)));
 }
Пример #7
0
 public Person GMapT <A>(MkT <A> lf)
 {
     return(new Person(lf.Apply(Address), lf.Apply(Name)));
 }
Пример #8
0
 public Child GMapT <A>(MkT <A> lf)
 {
     return(new Child(lf.Apply(_grandchild)));
 }