diff --git a/.editorconfig b/.editorconfig index 4a2590edd..cfed1c2b9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -88,9 +88,10 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const # var preferences csharp_style_var_for_built_in_types = true:silent csharp_style_var_when_type_is_apparent = true:silent -csharp_style_var_elsewhere = true:silent +csharp_style_var_elsewhere = true:silent +csharp_prefer_static_local_function= true:silent # Expression-bodied members -csharp_style_expression_bodied_methods = false:silent +csharp_style_expression_bodied_methods = true:silent csharp_style_expression_bodied_constructors = false:silent csharp_style_expression_bodied_operators = false:silent csharp_style_expression_bodied_properties = true:silent diff --git a/src/BootstrapBlazor.Shared/Pages/Samples/FloatingLabels.razor.cs b/src/BootstrapBlazor.Shared/Pages/Samples/FloatingLabels.razor.cs index a2eb66ead..bec2afc9f 100644 --- a/src/BootstrapBlazor.Shared/Pages/Samples/FloatingLabels.razor.cs +++ b/src/BootstrapBlazor.Shared/Pages/Samples/FloatingLabels.razor.cs @@ -4,6 +4,8 @@ using BootstrapBlazor.Shared.Common; using BootstrapBlazor.Shared.Pages.Components; +using System; +using System.Collections.Generic; namespace BootstrapBlazor.Shared.Pages { diff --git a/src/BootstrapBlazor.Shared/Pages/Samples/Inputs.razor.cs b/src/BootstrapBlazor.Shared/Pages/Samples/Inputs.razor.cs index 56e2dc72a..fba5f9e06 100644 --- a/src/BootstrapBlazor.Shared/Pages/Samples/Inputs.razor.cs +++ b/src/BootstrapBlazor.Shared/Pages/Samples/Inputs.razor.cs @@ -4,6 +4,8 @@ using BootstrapBlazor.Shared.Common; using BootstrapBlazor.Shared.Pages.Components; +using System; +using System.Collections.Generic; namespace BootstrapBlazor.Shared.Pages { diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs b/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs index 51c9979e9..853752ffd 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs @@ -3,6 +3,7 @@ // Website: https://www.blazor.zone or https://argozhang.github.io/ using Microsoft.AspNetCore.Components; +using System; namespace BootstrapBlazor.Components {