ScoobyRom.DataFile.RomXml.ParseCommon C# (CSharp) Method

ParseCommon() static private method

static private ParseCommon ( System.Xml.Linq.XElement el, Table table ) : void
el System.Xml.Linq.XElement
table Tables.Denso.Table
return void
        static void ParseCommon(XElement el, Table table)
        {
            // allow null values here when attributes don't exist
            table.Category = (string)el.Attribute (X_category);
            table.Title = (string)el.Attribute (X_name);

            XAttribute attr = el.Attribute (X_address);
            if (attr != null)
                table.Location = ParseHexInt ((string)attr, attr);
        }