Browse Source

Fix nullable warning.

Steven Kirk 4 years ago
parent
commit
c6f0dfdfe3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Base/Utilities/AvaloniaPropertyValueStore.cs

+ 1 - 1
src/Avalonia.Base/Utilities/AvaloniaPropertyValueStore.cs

@@ -94,7 +94,7 @@ namespace Avalonia.Utilities
             return (0, false);
         }
 
-        public bool TryGetValue(AvaloniaProperty property, [MaybeNull] out TValue value)
+        public bool TryGetValue(AvaloniaProperty property, [MaybeNullWhen(false)] out TValue value)
         {
             (int index, bool found) = TryFindEntry(property.Id);
             if (!found)