Skip to content

Commit a06c4b4

Browse files
committed
Refactor NavigationTrans and PropertyManager classes
- Removed unused `using System.Diagnostics.CodeAnalysis;` directive. - Changed `PropertyManager` from a static class to a static file class. - Fixed initialization of `properties` dictionary to use `new Dictionary<BindableObject, BaseCustomAnimation>()`. - Updated `Add` method to correctly store values in the `properties` dictionary. - `Get` method remains unchanged in functionality.
1 parent d05c070 commit a06c4b4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

PJ.NavigationTrans.Maui/NavigationTrans.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Diagnostics.CodeAnalysis;
2-
using System.Runtime.CompilerServices;
1+
using System.Runtime.CompilerServices;
32

43
namespace PJ.NavigationTrans.Maui;
54
public static class NavigationTrans
@@ -43,12 +42,12 @@ static void RegisterCustomTransitions(BindableObject view)
4342

4443
}
4544

46-
static class PropertyManager
45+
static file class PropertyManager
4746
{
4847
static readonly Dictionary<BindableObject, BaseCustomAnimation> properties = [];
4948

5049
[MethodImpl(MethodImplOptions.AggressiveInlining)]
51-
public static void Add(BindableObject key, BaseCustomAnimation value) =>
50+
public static void Add(BindableObject key, BaseCustomAnimation value) =>
5251
properties[key] = value;
5352

5453
[MethodImpl(MethodImplOptions.AggressiveInlining)]

0 commit comments

Comments
 (0)