diff options
author | Martin Baulig <martin@novell.com> | 2006-01-16 03:53:05 +0300 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2006-01-16 03:53:05 +0300 |
commit | 45613abb46eca9e010243d7eb7f8d2436cb2fec9 (patch) | |
tree | fa8221b63fe547457c6448de7719a148ca39acaa /mcs/gmcs/typemanager.cs | |
parent | 3e3aff3acb58ecdb13e9d0c3fb64324154f44fa8 (diff) |
2006-01-16 Martin Baulig <martin@ximian.com>
* typemanager.cs (TypeManager.CSharpSignature): Make this work for
ctors; fixes #77250.
svn path=/trunk/mcs/; revision=55613
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r-- | mcs/gmcs/typemanager.cs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs index 8b4afcb8436..981b4fd73c7 100644 --- a/mcs/gmcs/typemanager.cs +++ b/mcs/gmcs/typemanager.cs @@ -767,18 +767,19 @@ public partial class TypeManager { } else { if (mb.Name == ".ctor") sig.Append (mb.DeclaringType.Name); - else + else { sig.Append (mb.Name); - if (mb.Mono_IsInflatedMethod || TypeManager.IsGenericMethod (mb)) { - Type[] args = mb.GetGenericArguments (); - sig.Append ('<'); - for (int i = 0; i < args.Length; i++) { - if (i > 0) - sig.Append (','); - sig.Append (args [i].Name); + if (mb.Mono_IsInflatedMethod || TypeManager.IsGenericMethod (mb)) { + Type[] args = mb.GetGenericArguments (); + sig.Append ('<'); + for (int i = 0; i < args.Length; i++) { + if (i > 0) + sig.Append (','); + sig.Append (args [i].Name); + } + sig.Append ('>'); } - sig.Append ('>'); } sig.Append (parameters); |