sachin Shrestha
Member
- Joined
- Oct 31, 2021
- Messages
- 13
- Programming Experience
- Beginner
how can i dynamically set values to the name of country district city landmark
C#:
public class Region
{
public int id;
public string name;
public Country CountryInfo{get;set;} = new Country();
public City CityInfo{get; set;}= new City();
public District DistrictInfo{get; set;}= new District();
public Landmark LandmarkInfo{get; set; }= new Landmark();
}
public class Country
{
public int id;
public string name;
}
public class City
{
public int id;
public string name;
}
public class District
{
public int id;
public string name;
}
public class Landmark
{
public int id;
public string name;
}
Last edited by a moderator: