@@ -7,7 +7,7 @@ namespace ManualDi.Sync
77 public static class DiContainerTryResolveExtensions
88 {
99 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
10- public static bool TryResolve < T > ( this IDiContainer diContainer , [ MaybeNullWhen ( false ) ] out T resolution )
10+ public static bool TryResolve < T > ( this IDiContainer diContainer , [ NotNullWhen ( true ) ] out T ? resolution )
1111 {
1212 var result = diContainer . ResolveContainer ( typeof ( T ) ) ;
1313 if ( result is null )
@@ -21,7 +21,7 @@ public static bool TryResolve<T>(this IDiContainer diContainer, [MaybeNullWhen(f
2121 }
2222
2323 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
24- public static bool TryResolve < T > ( this IDiContainer diContainer , FilterBindingDelegate filterBindingDelegate , [ MaybeNullWhen ( false ) ] out T resolution )
24+ public static bool TryResolve < T > ( this IDiContainer diContainer , FilterBindingDelegate filterBindingDelegate , [ NotNullWhen ( true ) ] out T ? resolution )
2525 {
2626 var result = diContainer . ResolveContainer ( typeof ( T ) , filterBindingDelegate ) ;
2727 if ( result is null )
@@ -35,14 +35,14 @@ public static bool TryResolve<T>(this IDiContainer diContainer, FilterBindingDel
3535 }
3636
3737 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
38- public static bool TryResolve ( this IDiContainer diContainer , Type type , [ MaybeNullWhen ( false ) ] out object resolution )
38+ public static bool TryResolve ( this IDiContainer diContainer , Type type , [ NotNullWhen ( true ) ] out object ? resolution )
3939 {
4040 resolution = diContainer . ResolveContainer ( type ) ;
4141 return resolution is not null ;
4242 }
4343
4444 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
45- public static bool TryResolve ( this IDiContainer diContainer , Type type , FilterBindingDelegate filterBindingDelegate , [ MaybeNullWhen ( false ) ] out object resolution )
45+ public static bool TryResolve ( this IDiContainer diContainer , Type type , FilterBindingDelegate filterBindingDelegate , [ NotNullWhen ( true ) ] out object ? resolution )
4646 {
4747 resolution = diContainer . ResolveContainer ( type , filterBindingDelegate ) ;
4848 return resolution is not null ;
0 commit comments