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

LoadFromFile() public static method

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

Same methods

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