C#의 목록에서 문자열을 가져 오려고하지만이를 수행 할 방법을 찾을 수 없습니다. Heres는 내 코드C# 목록에서 문자열 가져 오기
public class CurrentCondition
{
public string cloudcover { get; set; }
public string humidity { get; set; }
public string observation_time { get; set; }
public string precipMM { get; set; }
public string pressure { get; set; }
public string temp_C { get; set; }
public string temp_F { get; set; }
public string visibility { get; set; }
public string weatherCode { get; set; }
public List<WeatherDesc> weatherDesc { get; set; }
public List<WeatherIconUrl> weatherIconUrl { get; set; }
public string winddir16Point { get; set; }
public string winddirDegree { get; set; }
public string windspeedKmph { get; set; }
public string windspeedMiles { get; set; }
}
public class Data
{
public List<CurrentCondition> current_condition { get; set; }
}
내가, 예를 들어, current_condition
목록에서 temp_F
문자열을 얻을합니다. 어떻게해야합니까? current_condition
이후
Data라는 클래스가 있습니까? 정말? –
적어도 우리에게 몇 가지 실패 시도를 보여 줘야합니다 – Jorge
@MitchWheat yea 정말로 그 이름을 바꿔야합니다 –