Sample Code

  • Thread starter Thread starter PaulCr1251
  • Start date Start date
P

PaulCr1251

Guest
How would I populate the following sample class with some sample data, from a c# example online? I'm trying to learn the Microsoft Json syntax.

public class WeatherForecastWithPOCOs
{
public DateTimeOffset Date { get; set; }
public int TemperatureCelsius { get; set; }
public string Summary { get; set; }
public string SummaryField;
public IList<DateTimeOffset> DatesAvailable { get; set; }
public Dictionary<string, HighLowTemps> TemperatureRanges { get; set; }
public string[] SummaryWords { get; set; }
}

public class HighLowTemps
{
public int High { get; set; }
public int Low { get; set; }
}




Paul J. Ilacqua

Continue reading...
 
Back
Top