mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 20:17:15 +00:00
Merge remote-tracking branch 'origin/ConnectPro_v1.1' into ConnectPro_v1.2
# Conflicts: # ICD.Common.Utils/Properties/AssemblyInfo.cs
This commit is contained in:
commit
ab699406a6
2 changed files with 10 additions and 16 deletions
|
|
@ -91,6 +91,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|||
- Better VC-4 support for IcdConsole
|
||||
- JSON refactoring for simpler deserialization
|
||||
|
||||
## [8.9.3] - 2020-08-17
|
||||
### Changed
|
||||
- Workaround for logged XML format exceptions when failing to parse floats
|
||||
|
||||
## [8.9.2] - 2020-07-28
|
||||
### Changed
|
||||
- StringExtensions - fixed an issue with IsNumeric where empty strings would return true
|
||||
|
|
|
|||
|
|
@ -177,26 +177,16 @@ namespace ICD.Common.Utils.Xml
|
|||
|
||||
public long ReadElementContentAsLong()
|
||||
{
|
||||
try
|
||||
{
|
||||
return m_Reader.ReadElementContentAsLong();
|
||||
}
|
||||
catch (XmlException e)
|
||||
{
|
||||
throw new IcdXmlException(e);
|
||||
}
|
||||
// ReadElementContentAsLong() logs and throws...
|
||||
string value = ReadElementContentAsString();
|
||||
return long.Parse(value);
|
||||
}
|
||||
|
||||
public float ReadElementContentAsFloat()
|
||||
{
|
||||
try
|
||||
{
|
||||
return m_Reader.ReadElementContentAsFloat();
|
||||
}
|
||||
catch (XmlException e)
|
||||
{
|
||||
throw new IcdXmlException(e);
|
||||
}
|
||||
// ReadElementContentAsFloat() logs and throws...
|
||||
string value = ReadElementContentAsString();
|
||||
return float.Parse(value);
|
||||
}
|
||||
|
||||
public bool ReadElementContentAsBoolean()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue