Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.Manufacture/TypeTransformer/DummyTransformer.cs @ 17271

Last change on this file since 17271 was 17271, checked in by dpiringe, 3 years ago

#3026

  • renamed ParameterData to Component
  • renamed File Template.cs to Component.cs
File size: 548 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using HeuristicLab.Core;
7
8namespace HeuristicLab.Manufacture {
9  public class DummyTransformer : BaseTransformer {
10    public override void InjectData(IItem item, Component data) {
11      // do nothing because the instance already exists and
12      // there are no values to inject
13    }
14
15    public override Component ExtractData(IItem value) =>
16      new Component() { Default = value.GetType().Name };
17  }
18}
Note: See TracBrowser for help on using the repository browser.