Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2005-12-15 01:11:26 +0300
committerMartin Baulig <martin@novell.com>2005-12-15 01:11:26 +0300
commitbf598d749e848b20c91a96f1d61e35ff49062d6e (patch)
tree3260a8c3434fffe0b0050807aa82f3f1d6f0718f /mcs/gmcs/typemanager.cs
parent82c970982dd662600b5519a72ba814a454d22f86 (diff)
2005-12-14 Martin Baulig <martin@ximian.com>
* typemanager.cs (TypeManager.GetFullName): Make this public; `Type.Fullname' now never returns null. * class.cs (Method.Define): Use TypeManager.GetFullName() for explicit interface implementations; we're now using the same naming convention than csc does. svn path=/trunk/mcs/; revision=54415
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r--mcs/gmcs/typemanager.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs
index bc21454b81f..68cee480ec7 100644
--- a/mcs/gmcs/typemanager.cs
+++ b/mcs/gmcs/typemanager.cs
@@ -653,16 +653,12 @@ public partial class TypeManager {
: CSharpName (mi.DeclaringType) + '.' + mi.Name;
}
- static string GetFullName (Type t)
+ public static string GetFullName (Type t)
{
if (t.IsGenericParameter)
return t.Name;
- string name = t.FullName;
- if (name == null) // It looks like mono bug
- name = t.Name;
-
- StringBuilder sb = new StringBuilder (RemoveGenericArity (name));
+ StringBuilder sb = new StringBuilder (RemoveGenericArity (t.FullName));
Type[] this_args = GetTypeArguments (t);