Browse Source

Fix second half of the generic type arguments bug.

pull/925/merge
Siegfried Pammer 8 years ago
parent
commit
89af40455e
  1. 2
      ICSharpCode.Decompiler/NRExtensions.cs

2
ICSharpCode.Decompiler/NRExtensions.cs

@ -28,7 +28,7 @@ namespace ICSharpCode.Decompiler @@ -28,7 +28,7 @@ namespace ICSharpCode.Decompiler
IList<IType> classTypeParameters = null;
IList<IType> methodTypeParameters = null;
if (decompilationContext.CurrentTypeDefinition != null)
if (decompilationContext.CurrentTypeDefinition != null && decompilationContext.CurrentTypeDefinition.TypeParameterCount > 0)
classTypeParameters = decompilationContext.CurrentTypeDefinition.TypeArguments;
IMethod method = decompilationContext.CurrentMember as IMethod;
if (method != null && method.TypeParameters.Count > 0)

Loading…
Cancel
Save