ATMLModelLibrary.model.signal.DME_INTERROGATION.LoadFromFile C# (CSharp) Method

LoadFromFile() public static method

public static LoadFromFile ( string fileName ) : DME_INTERROGATION
fileName string
return DME_INTERROGATION
        public new static DME_INTERROGATION LoadFromFile(string fileName)
        {
            System.IO.FileStream file = null;
            System.IO.StreamReader sr = null;
            try
            {
                file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
                sr = new System.IO.StreamReader(file);
                string xmlString = sr.ReadToEnd();
                sr.Close();
                file.Close();
                return Deserialize(xmlString);
            }
            finally
            {
                if ((file != null))
                {
                    file.Dispose();
                }
                if ((sr != null))
                {
                    sr.Dispose();
                }
            }
        }
    }

Same methods

DME_INTERROGATION::LoadFromFile ( string fileName, DME_INTERROGATION &obj ) : bool
DME_INTERROGATION::LoadFromFile ( string fileName, DME_INTERROGATION &obj, System &exception ) : bool