1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- //*******************************
- // Created By Rocher Kong
- // Github https://github.com/RocherKong
- // Date 2018.02.09
- //*******************************
- namespace IP2Region.Models
- {
- public class DataBlock
- {
- #region Private Properties
- public int CityID
- {
- get;
- private set;
- }
- public string Region
- {
- get;
- private set;
- }
- public int DataPtr
- {
- get;
- private set;
- }
- #endregion
- #region Constructor
- public DataBlock(int city_id, string region, int dataPtr = 0)
- {
- CityID = city_id;
- Region = region;
- DataPtr = dataPtr;
- }
- public DataBlock(int city_id, string region):this(city_id,region,0)
- {
- }
- #endregion
- public override string ToString()
- {
- return $"{CityID}|{Region}|{DataPtr}";
- }
- }
- }
|