mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 04:35:00 +00:00
Merge remote-tracking branch 'origin/ConnectPro_v1.5' into ConnectPro_v1.6
This commit is contained in:
@@ -97,9 +97,9 @@ namespace ICD.Common.Utils.Globalization
|
||||
private const string SQL_LOCAL_DATABASE_FILE = "CultureInfo.sqlite";
|
||||
private const string SQL_CONNECTION_STRING_FORMAT =
|
||||
#if SIMPLSHARP
|
||||
"Data Source = {0}; Version = 3; ReadOnly = True";
|
||||
"Data Source={0};Version=3;ReadOnly=True";
|
||||
#else
|
||||
"Data Source = {0}";
|
||||
"Data Source={0}";
|
||||
#endif
|
||||
private const string SQL_CMD_SELECT_BY_NAME = "select * from cultureinfo where name = @name collate nocase";
|
||||
private const string SQL_CMD_SELECT_BY_LCID = "select * from cultureinfo where lcid = @lcid";
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user