Add missing TryReadChildElementContent for Uint type

This commit is contained in:
Jack Kanarish
2018-03-19 11:17:12 -04:00
parent c2fa4263cc
commit 750994db47

View File

@@ -472,6 +472,25 @@ namespace ICD.Common.Utils.Xml
}
}
/// <summary>
/// Gets the content of the immediate child. Returns null if the child element was not found.
/// </summary>
/// <param name="xml"></param>
/// <param name="childElement"></param>
/// <returns></returns>
[PublicAPI]
public static uint? TryReadChildElementContentAsUInt(string xml, string childElement)
{
try
{
return ReadChildElementContentAsUint(xml, childElement);
}
catch (FormatException)
{
return null;
}
}
/// <summary>
/// Gets the content of the immediate child. Returns null if the child element was not found.
/// </summary>