Improve Delegate::Combine error message.

This commit is contained in:
Rodrigo Kumpera committed 2012-06-18 12:14:01 -03:00
1 parent 2f90a22a0b
commit 3d3fe6afab
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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 ();