From 470791b186ea8326f205f17ce2eadac2ff86a564 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Fri, 9 Jan 2009 16:05:52 +0000 Subject: 2009-01-09 Zoltan Varga Backport of r122907. * CustomAttributeData.cs (ToString): Applied patch from Leszek Ciesielski . Use DeclaringType.FullName instead of DeclaringType.Name. Fixes #464830. svn path=/branches/mono-2-2/mcs/; revision=122909 --- mcs/class/corlib/System.Reflection/ChangeLog | 8 ++++++++ mcs/class/corlib/System.Reflection/CustomAttributeData.cs | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mcs/class/corlib/System.Reflection/ChangeLog b/mcs/class/corlib/System.Reflection/ChangeLog index 7c32d370a51..8859ba77b99 100644 --- a/mcs/class/corlib/System.Reflection/ChangeLog +++ b/mcs/class/corlib/System.Reflection/ChangeLog @@ -1,3 +1,11 @@ +2009-01-09 Zoltan Varga + + Backport of r122907. + + * CustomAttributeData.cs (ToString): Applied patch from Leszek Ciesielski + . Use DeclaringType.FullName instead of DeclaringType.Name. + Fixes #464830. + 2008-11-17 Rodrigo Kumpera * MonoField.cs (GetValue): Don't check for open generic types if the field diff --git a/mcs/class/corlib/System.Reflection/CustomAttributeData.cs b/mcs/class/corlib/System.Reflection/CustomAttributeData.cs index c83ffef091a..b12e0a2bfcb 100644 --- a/mcs/class/corlib/System.Reflection/CustomAttributeData.cs +++ b/mcs/class/corlib/System.Reflection/CustomAttributeData.cs @@ -95,7 +95,7 @@ namespace System.Reflection { { StringBuilder sb = new StringBuilder (); - sb.Append ("[" + ctorInfo.DeclaringType.Name + " ("); + sb.Append ("[" + ctorInfo.DeclaringType.FullName + "("); for (int i = 0; i < ctorArgs.Count; i++) { sb.Append (ctorArgs [i].ToString ()); if (i + 1 < ctorArgs.Count) -- cgit v1.2.3