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>2006-02-14 20:33:48 +0300
committerMartin Baulig <martin@novell.com>2006-02-14 20:33:48 +0300
commit223695b452f40371741b60c7428975d277a1ebd8 (patch)
treefb5802ad68dec5b2e172af0a38bf51a2e728a892 /mcs/gmcs/typemanager.cs
parentc77db014ab72ae10bbae6223f7729a2f52ebc2ec (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.cs5
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 &&