diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2020-04-18 14:43:31 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2020-04-18 21:31:28 +1000 |
| commit | a6091afa5bd24fe65e7fc20f179ed888301afdf8 (patch) | |
| tree | 020cf8336d4f282bac818d2d7a5d2a6b0ae10ff0 /src/test/Example.Extension/ExampleExtensionData.cs | |
| parent | c7f9ef7e7bcceb670b56a70fc9aa92152fd55573 (diff) | |
| download | wix-a6091afa5bd24fe65e7fc20f179ed888301afdf8.tar.gz wix-a6091afa5bd24fe65e7fc20f179ed888301afdf8.tar.bz2 wix-a6091afa5bd24fe65e7fc20f179ed888301afdf8.zip | |
Test ability for an extension to have a custom strongly typed row during binding.
Diffstat (limited to 'src/test/Example.Extension/ExampleExtensionData.cs')
| -rw-r--r-- | src/test/Example.Extension/ExampleExtensionData.cs | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/test/Example.Extension/ExampleExtensionData.cs b/src/test/Example.Extension/ExampleExtensionData.cs index b38eb2a2..2ba94397 100644 --- a/src/test/Example.Extension/ExampleExtensionData.cs +++ b/src/test/Example.Extension/ExampleExtensionData.cs | |||
| @@ -16,21 +16,7 @@ namespace Example.Extension | |||
| 16 | 16 | ||
| 17 | public bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) | 17 | public bool TryGetTupleDefinitionByName(string name, out IntermediateTupleDefinition tupleDefinition) |
| 18 | { | 18 | { |
| 19 | switch (name) | 19 | tupleDefinition = ExampleTupleDefinitions.ByName(name); |
| 20 | { | ||
| 21 | case "Example": | ||
| 22 | tupleDefinition = ExampleTupleDefinitions.Example; | ||
| 23 | break; | ||
| 24 | |||
| 25 | case "ExampleSearch": | ||
| 26 | tupleDefinition = ExampleTupleDefinitions.ExampleSearch; | ||
| 27 | break; | ||
| 28 | |||
| 29 | default: | ||
| 30 | tupleDefinition = null; | ||
| 31 | break; | ||
| 32 | } | ||
| 33 | |||
| 34 | return tupleDefinition != null; | 20 | return tupleDefinition != null; |
| 35 | } | 21 | } |
| 36 | } | 22 | } |
