ATML1671Translator.model.S2.LoadFromFile C# (CSharp) Method

LoadFromFile() public static method

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

Same methods

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