Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Commit 0d423f9

Browse files
committed
skip methods with no body
1 parent fd66ea7 commit 0d423f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ void ProcessType(TypeDefinition type)
2626

2727
void ProcessMethod(MethodDefinition method)
2828
{
29+
if (method?.Body is null) return;
30+
2931
var il = method.Body.GetILProcessor();
3032

3133
var first = method.Body.Instructions[0];

0 commit comments

Comments
 (0)