From ed17b426545f007b80f6957d43e8ceb2be0b261a Mon Sep 17 00:00:00 2001 From: Kelly Thomas Date: Thu, 18 Jan 2018 19:43:23 +0800 Subject: [PATCH] remove c#7 features for compatibility with 2015 Build Tools https://github.com/godotengine/godot/issues/15742 --- modules/mono/glue/cs_files/DebuggingUtils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/glue/cs_files/DebuggingUtils.cs b/modules/mono/glue/cs_files/DebuggingUtils.cs index 42ca57fbf98..ffaaf008370 100644 --- a/modules/mono/glue/cs_files/DebuggingUtils.cs +++ b/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(".");