public override bool TryAddSymbolToOutput(IntermediateSection section, IntermediateSymbol symbol, WindowsInstallerData output, TableDefinitionCollection tableDefinitions) { if (ExampleSymbolDefinitions.TryGetSymbolType(symbol.Definition.Name, out var symbolType)) { switch (symbolType) { case ExampleSymbolDefinitionType.Example: { var row = (ExampleRow)this.BackendHelper.CreateRow(section, symbol, output, ExampleTableDefinitions.ExampleTable); row.Example = symbol.Id.Id; row.Value = symbol[0].AsString(); } return(true); } } return(base.TryAddSymbolToOutput(section, symbol, output, tableDefinitions)); }
public bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition) { symbolDefinition = ExampleSymbolDefinitions.ByName(name); return(symbolDefinition != null); }