ATMLModelLibrary.model.equipment.PXI.LoadFromFile C# (CSharp) Method

LoadFromFile() public static method

Deserializes xml markup from file into an PXI object
public static LoadFromFile ( string fileName, PXI &obj, Exception &exception ) : bool
fileName string string xml file to load and deserialize
obj PXI Output PXI object
exception System.Exception output Exception value if deserialize failed
return bool
        public static bool LoadFromFile(string fileName, out PXI obj, out Exception exception)
        {
            exception = null;
            obj = default(PXI);
            try
            {
                obj = LoadFromFile(fileName);
                return true;
            }
            catch (Exception ex)
            {
                exception = ex;
                return false;
            }
        }

Same methods

PXI::LoadFromFile ( string fileName ) : PXI
PXI::LoadFromFile ( string fileName, PXI &obj ) : bool