|
|
@ -31,7 +31,7 @@ namespace ICSharpCode.Decompiler |
|
|
|
if (decompilationContext.CurrentTypeDefinition != null) |
|
|
|
if (decompilationContext.CurrentTypeDefinition != null) |
|
|
|
classTypeParameters = decompilationContext.CurrentTypeDefinition.TypeArguments; |
|
|
|
classTypeParameters = decompilationContext.CurrentTypeDefinition.TypeArguments; |
|
|
|
IMethod method = decompilationContext.CurrentMember as IMethod; |
|
|
|
IMethod method = decompilationContext.CurrentMember as IMethod; |
|
|
|
if (method != null) |
|
|
|
if (method != null && method.TypeParameters.Count > 0) |
|
|
|
methodTypeParameters = method.TypeArguments; |
|
|
|
methodTypeParameters = method.TypeArguments; |
|
|
|
if (typeSystem is SpecializingDecompilerTypeSystem) |
|
|
|
if (typeSystem is SpecializingDecompilerTypeSystem) |
|
|
|
typeSystem = ((SpecializingDecompilerTypeSystem)typeSystem).Context; |
|
|
|
typeSystem = ((SpecializingDecompilerTypeSystem)typeSystem).Context; |
|
|
|