AlphaTab.Importer.MusicXml2Importer.ParseAttributes C# (CSharp) 메소드

ParseAttributes() 개인적인 메소드

private ParseAttributes ( IXmlNode element, Bar bar, MasterBar masterBar ) : void
element IXmlNode
bar AlphaTab.Model.Bar
masterBar AlphaTab.Model.MasterBar
리턴 void
        private void ParseAttributes(IXmlNode element, Bar bar, MasterBar masterBar)
        {
            element.IterateChildren(c =>
            {
                if (c.NodeType == XmlNodeType.Element)
                {
                    switch (c.LocalName)
                    {
                        case "key":
                            ParseKey(c, masterBar);
                            break;
                        case "time":
                            ParseTime(c, masterBar);
                            break;
                        case "clef":
                            ParseClef(c, bar);
                            break;
                    }
                }
            });
        }