mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 01:41:18 -10:00
[corlib] Improve the exception message in Delegate::Remove.
This commit is contained in:
1 parent
cff65d2ae5
commit
0a2c38df5e
1 file changed
+1
-1
@@ -527,7 +527,7 @@ namespace System
|
||||
return source;
|
||||
|
||||
if (source.GetType () != value.GetType ())
|
||||
throw new ArgumentException ("Delegate type mismatch");
|
||||
throw new ArgumentException (Locale.GetText ("Incompatible Delegate Types. First is {0} second is {1}.", a.GetType ().FullName, b.GetType ().FullName));
|
||||
|
||||
return source.RemoveImpl (value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user