Browse Source

Merge pull request #15837 from KellyThomas/patch-2

remove usage of C#7 in DebuggingUtils.cs for compatibility with 2015 Build Tools
Rémi Verschelde 7 năm trước cách đây
mục cha
commit
05e4303e1d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      modules/mono/glue/cs_files/DebuggingUtils.cs

+ 2 - 2
modules/mono/glue/cs_files/DebuggingUtils.cs

@@ -34,8 +34,8 @@ namespace Godot
 
             StringBuilder sb = new StringBuilder();
 
-            if (methodBase is MethodInfo methodInfo)
-                sb.AppendTypeName(methodInfo.ReturnType);
+            if (methodBase is MethodInfo)
+                sb.AppendTypeName(((MethodInfo)methodBase).ReturnType);
 
             sb.Append(methodBase.DeclaringType.FullName);
             sb.Append(".");