fixed warnings
This commit is contained in:
parent
1c40d9e59b
commit
1740d70845
6 changed files with 12 additions and 26 deletions
|
@ -212,7 +212,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
// try implicit type conversion
|
||||
props[i].SetValue(obj, propVal, null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch
|
||||
{
|
||||
// convert to string and then set property value
|
||||
try
|
||||
|
@ -220,14 +220,11 @@ namespace WebsitePanel.EnterpriseServer
|
|||
string strVal = propVal.ToString();
|
||||
props[i].SetValue(obj, Cast(strVal, props[i].PropertyType), null);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// skip property init
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) { } // just skip
|
||||
catch { } // just skip
|
||||
} // for properties
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue