コード例 #1
0
 public CensusDTO(USCensusDao uSCensusDao)
 {
     this.stateCode         = uSCensusDao.stateId;
     this.stateName         = uSCensusDao.stateName;
     this.population        = uSCensusDao.population;
     this.housingUnits      = uSCensusDao.housingUnit;
     this.totalArea         = uSCensusDao.totalArea;
     this.waterArea         = uSCensusDao.waterArea;
     this.landArea          = uSCensusDao.landArea;
     this.populationDensity = uSCensusDao.populationDensity;
     this.housingDensity    = uSCensusDao.housingDensity;
 }
コード例 #2
0
        public string getBothSorted(USCensusDao uSCensus, IndiaCensusDAO indiaCensus)
        {
            string sortedState = (uSCensus.populationDensity > indiaCensus.density) ? uSCensus.stateName : indiaCensus.state;

            return(sortedState);
        }