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

LoadFromFile() public static method

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

Same methods

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