From e9bbbbfc9ec57cc3e79bc27a6b5db5e919115233 Mon Sep 17 00:00:00 2001 From: Oleg Stepanischev Date: Sat, 2 Oct 2021 03:48:01 +0300 Subject: [PATCH] 0.6.1: Correctly deleting Inline attribute --- src/InlineMethod.Fody/ModuleWeaver.cs | 4 ++-- src/InlineMethod/InlineMethod.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/InlineMethod.Fody/ModuleWeaver.cs b/src/InlineMethod.Fody/ModuleWeaver.cs index 1c9b6be..51a337a 100644 --- a/src/InlineMethod.Fody/ModuleWeaver.cs +++ b/src/InlineMethod.Fody/ModuleWeaver.cs @@ -72,10 +72,10 @@ public override void Execute() foreach (var method in inlineMethods) { var attr = GetInlineAttribute(method); - if (attr != null && method.IsPrivate) + if (attr != null) { var remove = (bool)attr.ConstructorArguments.Single().Value; - if (remove) + if (remove && method.IsPrivate) { method.DeclaringType.Methods.Remove(method); } diff --git a/src/InlineMethod/InlineMethod.csproj b/src/InlineMethod/InlineMethod.csproj index 5c2e348..25b739f 100644 --- a/src/InlineMethod/InlineMethod.csproj +++ b/src/InlineMethod/InlineMethod.csproj @@ -12,7 +12,7 @@ $(SolutionDir)/../nugets https://github.com/oleg-st/InlineMethod.Fody false - 0.6 + 0.6.1