From 424014f5dbaff0c63e7b10b5fe67a12fd46a2867 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Wed, 15 Nov 2023 14:52:26 +0100 Subject: [PATCH] chore: Nuget updates --- sample/Atc.Blazor.Sample/Atc.Blazor.Sample.csproj | 4 ++-- .../Atc.Blazor.ColorThemePreference.csproj | 2 +- src/Atc.Blazor/Atc.Blazor.csproj | 6 +++--- .../Extensions/ComponentBaseExtensions.cs | 4 ++-- test/Atc.Blazor.Tests/Atc.Blazor.Tests.csproj | 14 +++++++------- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/sample/Atc.Blazor.Sample/Atc.Blazor.Sample.csproj b/sample/Atc.Blazor.Sample/Atc.Blazor.Sample.csproj index 5e427ed..b3bffdb 100644 --- a/sample/Atc.Blazor.Sample/Atc.Blazor.Sample.csproj +++ b/sample/Atc.Blazor.Sample/Atc.Blazor.Sample.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/src/Atc.Blazor.ColorThemePreference/Atc.Blazor.ColorThemePreference.csproj b/src/Atc.Blazor.ColorThemePreference/Atc.Blazor.ColorThemePreference.csproj index a18f56f..11e9078 100644 --- a/src/Atc.Blazor.ColorThemePreference/Atc.Blazor.ColorThemePreference.csproj +++ b/src/Atc.Blazor.ColorThemePreference/Atc.Blazor.ColorThemePreference.csproj @@ -12,7 +12,7 @@ - + \ No newline at end of file diff --git a/src/Atc.Blazor/Atc.Blazor.csproj b/src/Atc.Blazor/Atc.Blazor.csproj index d689475..e8673d4 100644 --- a/src/Atc.Blazor/Atc.Blazor.csproj +++ b/src/Atc.Blazor/Atc.Blazor.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/src/Atc.Blazor/Extensions/ComponentBaseExtensions.cs b/src/Atc.Blazor/Extensions/ComponentBaseExtensions.cs index bf82c59..cdd3bd3 100644 --- a/src/Atc.Blazor/Extensions/ComponentBaseExtensions.cs +++ b/src/Atc.Blazor/Extensions/ComponentBaseExtensions.cs @@ -70,7 +70,7 @@ public static void UpdateQueryStringFromPropertiesWithDecoratedQueryStringParame { foreach (var value in stringValues) { - newUri = QueryHelpers.AddQueryString(newUri, key, value); + newUri = QueryHelpers.AddQueryString(newUri, key, value!); } } @@ -78,7 +78,7 @@ public static void UpdateQueryStringFromPropertiesWithDecoratedQueryStringParame } [SuppressMessage("Major Code Smell", "S3011:Reflection should not be used to increase accessibility of classes, methods, or fields", Justification = "OK - By design.")] - private static IEnumerable GetPublicAndNonPublicProperties() + private static PropertyInfo[] GetPublicAndNonPublicProperties() => typeof(T).GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); private static string? GetQueryStringParameterName(PropertyInfo propertyInfo) diff --git a/test/Atc.Blazor.Tests/Atc.Blazor.Tests.csproj b/test/Atc.Blazor.Tests/Atc.Blazor.Tests.csproj index 31d9c98..d7ab774 100644 --- a/test/Atc.Blazor.Tests/Atc.Blazor.Tests.csproj +++ b/test/Atc.Blazor.Tests/Atc.Blazor.Tests.csproj @@ -6,16 +6,16 @@ - - - - - - + + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive