mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
Fixing bug that prevented enums from being parsed from xml properly
This commit is contained in:
parent
1c52eca1dd
commit
438b220a4d
1 changed files with 2 additions and 2 deletions
|
|
@ -592,8 +592,8 @@ namespace ICD.Common.Utils.Xml
|
|||
public static T? TryReadChildElementContentAsEnum<T>(string xml, string childElement, bool ignoreCase)
|
||||
where T : struct
|
||||
{
|
||||
T? output;
|
||||
return !TryReadChildElementContentAsEnum(xml, childElement, ignoreCase, out output) ? null : output;
|
||||
T output;
|
||||
return TryReadChildElementContentAsEnum(xml, childElement, ignoreCase, out output) ? output : (T?)null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue