コード例 #1
0
ファイル: PathOperation.cs プロジェクト: Prototypist1/Tac
 // 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));
 }
コード例 #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));
 }