Example #1
0
        void IXmlSerializable.ReadXml(XmlReader reader)
        {
            if (null == reader)
            {
                throw new ArgumentNullException("reader");
            }

            if (reader.IsEmptyElement)
            {
                reader.Read();
                return;
            }

            var name = reader.Name;
            while (reader.Read())
            {
#if NET20
                if (XmlReaderExtensionMethods.IsEndElement(reader, name))
#else
                if (reader.IsEndElement(name))
#endif
                {
                    reader.Read();
                    break;
                }

                while (XmlNodeType.Element == reader.NodeType)
                {
                    switch (reader.Name)
                    {
                        case "directories":
#if NET20
                            Directories = XmlReaderExtensionMethods.Deserialize<DirectoryCollection>(reader);
#else
                            Directories = reader.Deserialize<DirectoryCollection>();
#endif
                            break;
                        case "files":
#if NET20
                            Files = XmlReaderExtensionMethods.Deserialize<FileCollection>(reader);
#else
                            Files = reader.Deserialize<FileCollection>();
#endif
                            break;
                    }
                }
            }
        }
Example #2
0
    void Start()
    {
        fileLoader = new FileLoader();
        xmlReader = new XmlReader();
        dialogue = new DialogueReader();
        textSpoken.text = "";

        string data = fileLoader.Load("TestDialogue.xml");

        Dialogue d = xmlReader.Deserialize<Dialogue>(data) as Dialogue;

        dialogue.SetDialogue(d);
    }
 public static MProphetPeakScoringModel Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new MProphetPeakScoringModel());
 }
Example #4
0
 public static Enzyme Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new Enzyme());
 }
 public static IsotopeEnrichments Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new IsotopeEnrichments());
 }
Example #6
0
 public static IsolationScheme Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new IsolationScheme());
 }
Example #7
0
 public static StaticMod Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new StaticMod());
 }
Example #8
0
 public static BiblioSpecSpectrumHeaderInfo Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new BiblioSpecSpectrumHeaderInfo());
 }
Example #9
0
 public static PeptideFilter Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new PeptideFilter());
 }
Example #10
0
 public static FragmentLoss Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new FragmentLoss());
 }
 public static BackgroundProteomeSpec Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new BackgroundProteomeSpec());
 }
Example #12
0
 public static PeptideModifications Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new PeptideModifications());
 }
Example #13
0
 // ReSharper restore MemberHidesStaticFromOuterClass
 // ReSharper disable MemberHidesStaticFromOuterClass
 public static FeatureCalculator Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new FeatureCalculator());
 }
Example #14
0
 public static IonMobilityLibrary Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new IonMobilityLibrary());
 }
Example #15
0
 public static MeasuredIon Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new MeasuredIon());
 }
Example #16
0
 public static PeptideExcludeRegex Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new PeptideExcludeRegex());
 }
Example #17
0
 public static PeptidePrediction Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new PeptidePrediction());
 }
Example #18
0
 public static DigestSettings Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new DigestSettings());
 }
 public static OptimizationLibrary Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new OptimizationLibrary());
 }
 public static RetentionTimeSource Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new RetentionTimeSource());
 }
Example #21
0
 public static RCalcIrt Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new RCalcIrt());
 }
Example #22
0
 public static PeptideSettings Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new PeptideSettings());
 }
Example #23
0
 public static BiblioSpecLibSpec Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new BiblioSpecLibSpec());
 }
Example #24
0
 public static ChromatogramSet Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new ChromatogramSet());
 }
Example #25
0
 public static PeptideIntegration Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new PeptideIntegration(null));
 }
Example #26
0
 public static SrmSettings Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new SrmSettings());
 }
Example #27
0
 public static PeptideLibraries Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new PeptideLibraries());
 }
Example #28
0
 public static LegacyScoringModel Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new LegacyScoringModel());
 }
Example #29
0
 public static IsolationWindow Deserialize(XmlReader reader)
 {
     return reader.Deserialize(new IsolationWindow());
 }