Browse Source

Fix GetTypeConstructor

pull/863/head
Siegfried Pammer 8 years ago
parent
commit
c172483f70
  1. 2
      ILSpy/TreeNodes/Analyzer/Helpers.cs

2
ILSpy/TreeNodes/Analyzer/Helpers.cs

@ -92,7 +92,7 @@ namespace ICSharpCode.ILSpy.TreeNodes.Analyzer @@ -92,7 +92,7 @@ namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
private static MethodDefinition GetTypeConstructor(TypeDefinition type)
{
return type.Methods.FirstOrDefault(method => method.Name == ".ctor");
return type.Methods.FirstOrDefault(method => !method.IsStatic && method.IsConstructor);
}
private static MethodDefinition FindMethodUsageInType(TypeDefinition type, MethodDefinition analyzedMethod)

Loading…
Cancel
Save