mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 21:54:58 +00:00
Add missing TryReadChildElementContent for Uint type
This commit is contained in:
@@ -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>
|
/// <summary>
|
||||||
/// Gets the content of the immediate child. Returns null if the child element was not found.
|
/// Gets the content of the immediate child. Returns null if the child element was not found.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user