Exemplo n.º 1
0
 // this two methods Convert and Returns are interesting
 // they could almost be implemented as extensions
 // I mean they are going to look the same in every set of implemenation of the ICodeElements
 // but... I want to ensure they are there so I include them on the interface
 public T Convert <T>(IOpenBoxesContext <T> context)
 {
     return(context.PathOperation(this));
 }
Exemplo n.º 2
0
 // this two methods Convert and Returns are interesting
 // they could almost be implemented as extensions
 // I mean they are going to look the same in every set of implemenation of the ICodeElements
 // but... I want to ensure they are there so I include them on the interface
 public T Convert <T, TBacking>(IOpenBoxesContext <T, TBacking> context)
     where TBacking : IBacking
 {
     return(context.PathOperation(this));
 }