Add access modifiers and [Parameter] on its own line (#13928)
This commit is contained in:
parent
db1aca12a5
commit
95d7f23e28
|
|
@ -9,7 +9,8 @@
|
|||
/// <summary>
|
||||
/// The content to which the authentication state should be provided.
|
||||
/// </summary>
|
||||
[Parameter] public RenderFragment ChildContent { get; set; }
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
||||
|
||||
@code {
|
||||
int currentCount = 0;
|
||||
private int currentCount = 0;
|
||||
|
||||
void IncrementCount()
|
||||
private void IncrementCount()
|
||||
{
|
||||
currentCount++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ else
|
|||
}
|
||||
|
||||
@code {
|
||||
WeatherForecast[] forecasts;
|
||||
private WeatherForecast[] forecasts;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
|
|
@ -60,5 +60,5 @@ else
|
|||
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
|
||||
}
|
||||
#endif*@
|
||||
#endif*@
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,11 +26,11 @@
|
|||
</div>
|
||||
|
||||
@code {
|
||||
bool collapseNavMenu = true;
|
||||
private bool collapseNavMenu = true;
|
||||
|
||||
string NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||||
private string NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||||
|
||||
void ToggleNavMenu()
|
||||
private void ToggleNavMenu()
|
||||
{
|
||||
collapseNavMenu = !collapseNavMenu;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,5 +11,6 @@
|
|||
|
||||
@code {
|
||||
// Demonstrates how a parent component can supply parameters
|
||||
[Parameter] public string Title { get; set; }
|
||||
[Parameter]
|
||||
public string Title { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
||||
|
||||
@code {
|
||||
int currentCount = 0;
|
||||
private int currentCount = 0;
|
||||
|
||||
void IncrementCount()
|
||||
private void IncrementCount()
|
||||
{
|
||||
currentCount++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ else
|
|||
}
|
||||
|
||||
@code {
|
||||
WeatherForecast[] forecasts;
|
||||
private WeatherForecast[] forecasts;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
</AuthorizeView>
|
||||
|
||||
@code {
|
||||
bool canEditProfile;
|
||||
private bool canEditProfile;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,11 +26,11 @@
|
|||
</div>
|
||||
|
||||
@code {
|
||||
bool collapseNavMenu = true;
|
||||
private bool collapseNavMenu = true;
|
||||
|
||||
string NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||||
private string NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||||
|
||||
void ToggleNavMenu()
|
||||
private void ToggleNavMenu()
|
||||
{
|
||||
collapseNavMenu = !collapseNavMenu;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue