public CensusDTO(CSVStateCensus stateCensus)
 {
     this.state          = stateCensus.state;
     this.population     = stateCensus.population;
     this.areaInSqKm     = stateCensus.areaInSqKm;
     this.densityPerSqKm = stateCensus.densityPerSqKm;
 }
Example #2
0
 /// <summary>
 /// Parameter Constructor For Setting Data for StateCensus.
 /// </summary>
 /// <param name="cSVStateCensus"></param>
 /// <param name="values"></param>
 public CensusDAO(CSVStateCensus cSVStateCensus, string[] values)
 {
     state             = values[0];
     population        = values[1];
     totalArea         = values[2];
     populationDensity = values[3];
 }
Example #3
0
        public static GetCSVCount DelegateOfCSvStateCensus()
        {
            CSVStateCensus csvStateCensus = InstanceOfCSVStateCensus();
            GetCSVCount    getCSVCount    = new GetCSVCount(csvStateCensus.ToGetDataFromCSVFile);

            return(getCSVCount);
        }