diff options
Diffstat (limited to 'src/WixToolset.Core/Common.cs')
-rw-r--r-- | src/WixToolset.Core/Common.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/WixToolset.Core/Common.cs b/src/WixToolset.Core/Common.cs index 28e7ee7b..9a0d3aec 100644 --- a/src/WixToolset.Core/Common.cs +++ b/src/WixToolset.Core/Common.cs | |||
@@ -1,6 +1,6 @@ | |||
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. | 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 | 2 | ||
3 | namespace WixToolset | 3 | namespace WixToolset.Core |
4 | { | 4 | { |
5 | using System; | 5 | using System; |
6 | using System.Diagnostics; | 6 | using System.Diagnostics; |
@@ -13,6 +13,7 @@ namespace WixToolset | |||
13 | using System.Xml; | 13 | using System.Xml; |
14 | using System.Xml.Linq; | 14 | using System.Xml.Linq; |
15 | using WixToolset.Data; | 15 | using WixToolset.Data; |
16 | using WixToolset.Extensibility; | ||
16 | 17 | ||
17 | /// <summary> | 18 | /// <summary> |
18 | /// Common Wix utility methods and types. | 19 | /// Common Wix utility methods and types. |
@@ -766,8 +767,8 @@ namespace WixToolset | |||
766 | /// <returns>The attribute's YesNoType value.</returns> | 767 | /// <returns>The attribute's YesNoType value.</returns> |
767 | internal static string GetInnerText(XElement node) | 768 | internal static string GetInnerText(XElement node) |
768 | { | 769 | { |
769 | XText text = node.Nodes().Where(n => XmlNodeType.Text == n.NodeType || XmlNodeType.CDATA == n.NodeType).Cast<XText>().FirstOrDefault(); | 770 | var text = node.Nodes().Where(n => XmlNodeType.Text == n.NodeType || XmlNodeType.CDATA == n.NodeType).Cast<XText>().FirstOrDefault(); |
770 | return (null == text) ? null : text.Value; | 771 | return text?.Value; |
771 | } | 772 | } |
772 | 773 | ||
773 | /// <summary> | 774 | /// <summary> |