public static LoadFromFile ( string fileName, InstrumentDescription &obj, Exception &exception ) : bool | ||
fileName | string | string xml file to load and deserialize |
obj | InstrumentDescription | Output InstrumentDescription object |
exception | Exception | output Exception value if deserialize failed |
Результат | bool |
public static bool LoadFromFile(string fileName, out InstrumentDescription obj, out Exception exception)
{
exception = null;
obj = default(InstrumentDescription);
try
{
obj = LoadFromFile(fileName);
return true;
}
catch (Exception ex)
{
exception = ex;
return false;
}
}
InstrumentDescription::LoadFromFile ( string fileName ) : InstrumentDescription | |
InstrumentDescription::LoadFromFile ( string fileName, InstrumentDescription &obj ) : bool |