diff options
author | Martin Baulig <martin@novell.com> | 2006-02-14 20:33:48 +0300 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2006-02-14 20:33:48 +0300 |
commit | 223695b452f40371741b60c7428975d277a1ebd8 (patch) | |
tree | fb5802ad68dec5b2e172af0a38bf51a2e728a892 /mcs/gmcs/typemanager.cs | |
parent | c77db014ab72ae10bbae6223f7729a2f52ebc2ec (diff) |
2006-02-14 Martin Baulig <martin@ximian.com>
* generic.cs
(TypeManager.DropGenericMethodArguments): New public method.
(TypeManager.IsInstantiatedMethod): New public method. Use this
instead of `Mono_IsInflatedMethod'.
svn path=/trunk/mcs/; revision=56861
Diffstat (limited to 'mcs/gmcs/typemanager.cs')
-rw-r--r-- | mcs/gmcs/typemanager.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mcs/gmcs/typemanager.cs b/mcs/gmcs/typemanager.cs index f011c96bda6..83b5fc873f1 100644 --- a/mcs/gmcs/typemanager.cs +++ b/mcs/gmcs/typemanager.cs @@ -591,7 +591,7 @@ public partial class TypeManager { /// </summary> static public string CSharpName (Type t) { - if (IsNullableType (t)) { + if (IsNullableType (t) && !t.IsGenericTypeDefinition) { t = GetTypeArguments (t) [0]; return CSharpName (t) + "?"; } @@ -1789,8 +1789,7 @@ public partial class TypeManager { static public bool IsOverride (MethodBase m) { - if (m.Mono_IsInflatedMethod) - m = m.GetGenericMethodDefinition (); + m = DropGenericMethodArguments (m); return m.IsVirtual && (m.Attributes & MethodAttributes.NewSlot) == 0 && |