Skip to content

Instantly share code, notes, and snippets.

@jonpryor
Created August 22, 2010 19:44
Show Gist options
  • Save jonpryor/544182 to your computer and use it in GitHub Desktop.
Save jonpryor/544182 to your computer and use it in GitHub Desktop.
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