private static void Display(IntrastateType intrastateType, int indent)
 {
     if (intrastateType != null)
     {
         DisplayValue("Intrastate", intrastateType, indent);
     }
 }
        private void Display(DobCarrier dobCarrier, int indent)
        {
            if (dobCarrier == null)
            {
                return;
            }
            DisplayLabel("DobCarrier info", indent);

            CarrierInfo carrierInfo = dobCarrier.carrierInfo;

            if (carrierInfo != null)
            {
                DisplayValue("DBA name", carrierInfo.dbaName, indent + 1);
                if (carrierInfo.docket != null)
                {
                    DisplayValue("Docket name", carrierInfo.docket.prefix + carrierInfo.docket.number, indent + 1);
                }
                if (carrierInfo.dotNumberSpecified && carrierInfo.dotNumber > 0)
                {
                    DisplayValue("Dot Number", carrierInfo.dotNumber, indent);
                }
                DisplayValue("Duns", carrierInfo.duns, indent + 1);
                IntrastateType intrastate = carrierInfo.intrastate;
                if (intrastate != null)
                {
                    DisplayValue("Intrastate", intrastate.intrastateState.ToString() + intrastate.intrastateCode, indent + 1);
                }
                DisplayValue("Carrier Info Last Update", carrierInfo.lastUpdate, indent + 1);
                DisplayValue("Legal Name", carrierInfo.legalName, indent + 1);

                Display("Mailing address", carrierInfo.mailingAddress, indent + 1);
                Display("Physical address", carrierInfo.physicalAddress, indent + 1);
                if (carrierInfo.scacCode != null)
                {
                    foreach (string code in carrierInfo.scacCode)
                    {
                        DisplayValue("Scacc Code", code, indent + 1);
                    }
                }
                DisplayValue("Website", carrierInfo.website, indent + 1);
            }
            ContactInfo contactInfo = dobCarrier.contactInfo;

            if (contactInfo.contacts != null)
            {
                foreach (Contact contact in contactInfo.contacts)
                {
                    Display(contact, indent + 1);
                }
            }
            DisplayValue("Contact Info Last Update", contactInfo.lastUpdate, indent + 1);

            Document[] documents = dobCarrier.documents;
            if (documents != null)
            {
                foreach (Document document in documents)
                {
                    Display(document, indent + 1);
                }
            }

            Display(dobCarrier.equipment, indent + 1);

            GeographicCoverage geographicCoverage = dobCarrier.geographicCoverage;

            if (geographicCoverage != null)
            {
                LaneType[] lanes = geographicCoverage.lanes;
                if (lanes != null)
                {
                    foreach (LaneType laneType in lanes)
                    {
                        Display(laneType, indent + 1);
                    }
                }
                DisplayValue("Last Geographic Coverage Update Date", geographicCoverage.lastUpdate, indent + 1);
                if (geographicCoverage.operatingStateProvince != null)
                {
                    foreach (StateProvince stateProvince in geographicCoverage.operatingStateProvince)
                    {
                        DisplayValue("Geographic Coverage operation state province", stateProvince, indent + 1);
                    }
                }
                DisplayValue("Geographic Coverage service in mexico", geographicCoverage.serviceInMexico, indent + 1);
            }
        }