CSMSL.IO.MzML.SpectrumType.Deserialize C# (CSharp) Method

Deserialize() public static method

public static Deserialize ( string xml ) : SpectrumType
xml string
return SpectrumType
        public static SpectrumType Deserialize(string xml)
        {
            System.IO.StringReader stringReader = null;
            try
            {
                stringReader = new System.IO.StringReader(xml);
                return ((SpectrumType)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
            }
            finally
            {
                if ((stringReader != null))
                {
                    stringReader.Dispose();
                }
            }
        }

Same methods

SpectrumType::Deserialize ( string xml, SpectrumType &obj ) : bool
SpectrumType::Deserialize ( string xml, SpectrumType &obj, System &exception ) : bool