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

LoadFromFile() public static method

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

Same methods

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