using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GeographicRepresentation.Lib.Model { /// <summary> /// The Continent model class /// </summary> public class Continent { #region Members Guid m_Id; string m_strName; int m_nNumberOfCountries; string m_strBestCityToBeIn; List<Country> m_Countries; #endregion #region Properties public Guid Id { get { return m_Id; } set { m_Id = value; } } public string Name { get { return m_strName; } set { m_strName = value; } } public int NumberOfCountries { get { return m_nNumberOfCountries; } set { m_nNumberOfCountries = value; } } public string BestCityToBeIn { get { return m_strBestCityToBeIn; } set { m_strBestCityToBeIn = value; } } public List<Country> Countries { get { return m_Countries; } set { m_Countries = value; } } #endregion #region Ctor public Continent() { m_Id = Guid.NewGuid(); m_Countries = new List<Country>(); } public Continent(Continent continent) { m_Id = continent.Id; m_strName = continent.Name; m_nNumberOfCountries = continent.NumberOfCountries; m_strBestCityToBeIn = continent.BestCityToBeIn; m_Countries = continent.Countries; } #endregion } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)