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

LoadFromFile() public static method

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

Same methods

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