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

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

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

Same methods

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