Created
August 22, 2010 19:44
-
-
Save jonpryor/544182 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mcs/mcs/typespec.cs b/mcs/mcs/typespec.cs | |
index 8bb6f56..da19f08 100644 | |
--- a/mcs/mcs/typespec.cs | |
+++ b/mcs/mcs/typespec.cs | |
@@ -1049,6 +1049,16 @@ namespace Mono.CSharp | |
} | |
} | |
+ public override string Name { | |
+ get { | |
+ string arity = "[" + new string (',', Rank-1) + "]"; | |
+ foreach (TypeParameterSpec t in DeclaringType.MemberDefinition.TypeParameters) | |
+ if (Element.Name == t.Name) | |
+ return "`" + t.DeclaredPosition + arity; | |
+ return Element.Name + arity; | |
+ } | |
+ } | |
+ | |
public System.Reflection.MethodInfo GetConstructor () | |
{ | |
var mb = RootContext.ToplevelTypes.Builder; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment