mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 01:41:18 -10:00
Improve Delegate::Combine error message.
This commit is contained in:
1 parent
2f90a22a0b
commit
3d3fe6afab
2 files changed
+2
-2
No files matched your search
@@ -476,7 +476,7 @@ namespace System
|
||||
return a;
|
||||
|
||||
if (a.GetType () != b.GetType ())
|
||||
throw new ArgumentException (Locale.GetText ("Incompatible Delegate Types."));
|
||||
throw new ArgumentException (Locale.GetText ("Incompatible Delegate Types. First is {0} second is {1}.", a.GetType ().FullName, b.GetType ().FullName));
|
||||
|
||||
return a.CombineImpl (b);
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace System
|
||||
MulticastDelegate combined, orig, clone;
|
||||
|
||||
if (this.GetType() != follow.GetType ())
|
||||
throw new ArgumentException (Locale.GetText ("Incompatible Delegate Types."));
|
||||
throw new ArgumentException (Locale.GetText ("Incompatible Delegate Types. First is {0} second is {1}.", this.GetType ().FullName, follow.GetType ().FullName));
|
||||
|
||||
combined = (MulticastDelegate)follow.Clone ();
|
||||
combined.SetMulticastInvoke ();
|
||||
|
||||
Reference in new issue
Block a user