Skip to content

Commit 77424a6

Browse files
conficientpranavkm
authored andcommitted
Amend server-side blazor template WeatherForecast TemperatureF to use formula - fixes #9955 (#9981)
1 parent ec4c3c4 commit 77424a6

File tree

1 file changed

+1
-1
lines changed
  • src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Data

1 file changed

+1
-1
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/RazorComponentsWeb-CSharp/Data/WeatherForecast.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class WeatherForecast
88

99
public int TemperatureC { get; set; }
1010

11-
public int TemperatureF { get; set; }
11+
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
1212

1313
public string Summary { get; set; }
1414
}

0 commit comments

Comments
 (0)