浏览代码

Mono: Remove diagnostics incompatible with 3.x codebase

Rémi Verschelde 4 年之前
父节点
当前提交
70784f983b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs

+ 1 - 2
modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs

@@ -3,7 +3,6 @@ using System.Collections.Generic;
 using System.Collections;
 using System.Collections;
 using System.Runtime.CompilerServices;
 using System.Runtime.CompilerServices;
 using System.Runtime.InteropServices;
 using System.Runtime.InteropServices;
-using System.Diagnostics.CodeAnalysis;
 
 
 namespace Godot.Collections
 namespace Godot.Collections
 {
 {
@@ -528,7 +527,7 @@ namespace Godot.Collections
         /// <param name="key">The key of the element to get.</param>
         /// <param name="key">The key of the element to get.</param>
         /// <param name="value">The value at the given <paramref name="key"/>.</param>
         /// <param name="value">The value at the given <paramref name="key"/>.</param>
         /// <returns>If an object was found for the given <paramref name="key"/>.</returns>
         /// <returns>If an object was found for the given <paramref name="key"/>.</returns>
-        public bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
+        public bool TryGetValue(TKey key, out TValue value)
         {
         {
             bool found = Dictionary.godot_icall_Dictionary_TryGetValue_Generic(GetPtr(), key, out object retValue, valTypeEncoding, valTypeClass);
             bool found = Dictionary.godot_icall_Dictionary_TryGetValue_Generic(GetPtr(), key, out object retValue, valTypeEncoding, valTypeClass);
             value = found ? (TValue)retValue : default;
             value = found ? (TValue)retValue : default;