コード例 #1
0
 public string Visit(FeatureSetTopic featureSet, Topic nextTopic, Topic previousTopic)
 {
     if(featureSet.CustomTopic != null) {
         FeatureTemplate featureTemplate = new FeatureTemplate(featureSet.CustomTopic, nextTopic, previousTopic);
         return featureTemplate.TransformText(); 
     }
     FeatureSetTemplate featureSetTemplate = new FeatureSetTemplate(featureSet, nextTopic, previousTopic);
     return featureSetTemplate.TransformText();
 }
コード例 #2
0
 public FeatureSetTemplate(FeatureSetTopic featureSet, Topic nextTopic, Topic previousTopic)
 {
     this.featureSet = featureSet;
     this.nextTopic = nextTopic;
     this.previousTopic = previousTopic;
 }