Support for a Null STBoxIndex

This commit is contained in:
Rich 2014-10-24 16:49:05 +00:00
parent d13f8d05f4
commit be0ae3dbe2

View File

@ -408,6 +408,7 @@ namespace VEPROMS.CSLA.Library
int iValue = 0;
if (!int.TryParse(xn.InnerText, out iValue))
{
if (xn.InnerText == "") return null;
Console.WriteLine(string.Format("'{0}'\r\n'{1}'\r\n'{2}' could not be converted to int?", MyFormat.FullName, MyPath + "/" + xPath, xn.InnerText));
throw (new Exception(string.Format("{0} = '{1}' could not be converted to int?", xPath, xn.InnerText)));
}