ATMLModelLibrary.model.equipment.MatrixPort.LoadFromFile C# (CSharp) Метод

LoadFromFile() публичный статический Метод

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

Same methods

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