diff options
author | Michal Strehovsky <michals@microsoft.com> | 2018-01-26 15:43:06 +0300 |
---|---|---|
committer | Michal Strehovsky <michals@microsoft.com> | 2018-01-26 15:43:06 +0300 |
commit | 3ff89c25070a9d48364274b8572576eb22e04c91 (patch) | |
tree | dd55143cb6ff0f88c86630416af06250c6079d66 /src/System.Private.StackTraceMetadata | |
parent | d57a0096b6f2378eebbe4e0ca9ed0d22eeff5e48 (diff) |
Two more fixes in stack trace metadata
* When emitting a TypeReference record for a generic type, include the names of the generic parameters by pretending the type is instantiated (necessary to get the T's and U's right in the parameter list)
* Generic types do not show up instantiated in the parameter list on the CLR. Don't try to format it here either.
[tfs-changeset: 1687157]
Diffstat (limited to 'src/System.Private.StackTraceMetadata')
-rw-r--r-- | src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs b/src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs index 2d3bb5a0a..feb7dccf7 100644 --- a/src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs +++ b/src/System.Private.StackTraceMetadata/src/Internal/StackTraceMetadata/MethodNameFormatter.cs @@ -345,9 +345,9 @@ namespace Internal.StackTraceMetadata /// <param name="namespaceQualified">When set to true, include namespace information</param> private void EmitTypeInstantiationName(TypeInstantiationSignatureHandle typeInstHandle, bool namespaceQualified) { + // Stack trace metadata ignores the instantiation arguments of the type in the CLR TypeInstantiationSignature typeInst = _metadataReader.GetTypeInstantiationSignature(typeInstHandle); EmitTypeName(typeInst.GenericType, namespaceQualified); - EmitGenericArguments(typeInst.GenericTypeArguments); } /// <summary> |