Skip to content

Commit

Permalink
Merge pull request #119 from BlazorBowl/RemoveCloneFromTemplate
Browse files Browse the repository at this point in the history
Removed Clone method and Interface from WeatherForecastDto
  • Loading branch information
StevenTCramer authored Jun 4, 2019
2 parents ba8c864 + 2713083 commit a98f50b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
using System;

public class WeatherForecastDto : ICloneable
public class WeatherForecastDto
{
public WeatherForecastDto() { }

Expand All @@ -17,7 +17,5 @@ protected WeatherForecastDto(WeatherForecastDto aWeatherForecast)
public string Summary { get; set; }
public int TemperatureC { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);

public object Clone() => new WeatherForecastDto(this);
}
}

0 comments on commit a98f50b

Please sign in to comment.