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

LoadFromFile() public static method

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

Same methods

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