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

LoadFromFile() public static method

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

Same methods

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