main
cs 21 lines 852 Bytes
Raw
1 // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3 namespace WixToolset.Util
4 {
5 using WixToolset.Data;
6 using WixToolset.Extensibility;
7
8 public sealed class UtilExtensionData : BaseExtensionData
9 {
10 public override bool TryGetSymbolDefinitionByName(string name, out IntermediateSymbolDefinition symbolDefinition)
11 {
12 symbolDefinition = UtilSymbolDefinitions.ByName(name);
13 return symbolDefinition != null;
14 }
15
16 public override Intermediate GetLibrary(ISymbolDefinitionCreator symbolDefinitions)
17 {
18 return Intermediate.Load(typeof(UtilExtensionData).Assembly, "WixToolset.Util.util.wixlib", symbolDefinitions);
19 }
20 }
21 }