OSDN Git Service

C# 8.0 のnull許容参照型を有効化
[opentween/open-tween.git] / OpenTween / Models / IReadOnlyTabCollection.cs
index 01f04d7..058ee1b 100644 (file)
 // the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 // Boston, MA 02110-1301, USA.
 
+#nullable enable
+
 using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
 
 namespace OpenTween.Models
 {
@@ -33,6 +36,6 @@ namespace OpenTween.Models
 
         bool Contains(string tabName);
 
-        bool TryGetValue(string tabName, out TabModel tab);
+        bool TryGetValue(string tabName, [NotNullWhen(true)] out TabModel? tab);
     }
 }