فهرست منبع

Merge pull request #69191 from raulsntos/dotnet/no-throw

Fix `VariantUtils.UnsupportedType` method throwing
Ignacio Roldán Etcheverry 2 سال پیش
والد
کامیت
68e3f49157
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs

+ 1 - 1
modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/VariantUtils.generic.cs

@@ -6,7 +6,7 @@ namespace Godot.NativeInterop;
 
 public partial class VariantUtils
 {
-    private static Exception UnsupportedType<T>() => throw new InvalidOperationException(
+    private static Exception UnsupportedType<T>() => new InvalidOperationException(
         $"The type is not supported for conversion to/from Variant: '{typeof(T).FullName}'");
 
     internal static class GenericConversion<T>