Exemple #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));
        }
Exemple #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()));
 }
Exemple #3
0
 public Parent GMapT <A>(MkT <A> lf)
 {
     return(new Parent(lf.Apply(_child)));
 }
Exemple #4
0
 public Company GMapT <A>(MkT <A> lf)
 {
     return(new Company(Departments.Select(d => lf.Apply(d)).ToArray()));
 }
Exemple #5
0
 public new Manager GMapT <A>(MkT <A> lf)
 {
     return(new Manager(lf.Apply(Salary), lf.Apply(Person)));
 }
 public Employee GMapT <A>(MkT <A> lf)
 {
     return(new Employee(lf.Apply(Salary), lf.Apply(Person)));
 }
Exemple #7
0
 public Person GMapT <A>(MkT <A> lf)
 {
     return(new Person(lf.Apply(Address), lf.Apply(Name)));
 }
Exemple #8
0
 public Child GMapT <A>(MkT <A> lf)
 {
     return(new Child(lf.Apply(_grandchild)));
 }