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

Deserialize() public static method

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

Same methods

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