CSMSL.IO.MzML.ComponentType.LoadFromFile C# (CSharp) Method

LoadFromFile() public static method

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

Same methods

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