I want to add new object to a list: My code:
List abc = new List();
abc.Add(new geo_tag() { latitude = 111, longitude = 122, un
Something like this for example?
List abc = new List {};
abc.Add(new geo_tag(11, 112, "SSS"));
public class geo_tag
{
public int latitude { get; set; }
public int longitude { get; set; }
public string unit { get; set; }
public geo_tag()
{
}
public geo_tag(int latitude, int longitude, string unit)
{
this.latitude = latitude;
this.longitude = longitude;
this.unit = unit;
}
}