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

LoadFromFile() public static method

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

Same methods

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