public override bool TryThisParseXml(XmlElement elem)
        {
            if (!base.TryThisParseXml(elem))
                return false;
            if (!elem.HasChildNodes)
                return true;

            foreach (var cNode in elem.ChildNodes)
            {
                var cElem = cNode as XmlElement;
                if (cElem == null)
                    continue;
                var market = new NaicsMarket();
                if (market.TryThisParseXml(cElem))
                    divisions.Add(market);
            }

            return true;
        }
예제 #2
0
파일: Firm.cs 프로젝트: nofuture-git/31g
 protected internal void ResolveNaicsOnSic()
 {
     if (SIC == null)
         return;
     var naics = StandardIndustryClassification.LookupNaicsBySic(SIC);
     if (naics == null)
         return;
     _primarySector = naics.Item1;
     _sector = naics.Item2;
     _market = naics.Item3;
 }