浏览代码

remove c#7 features for compatibility with 2015 Build Tools

https://github.com/godotengine/godot/issues/15742
Kelly Thomas 7 年之前
父节点
当前提交
ed17b42654
共有 1 个文件被更改,包括 2 次插入2 次删除
  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(".");