Skip to content

Commit 36c23c8

Browse files
authored
Suppress CA1060 (#113)
* Suppress CA1060 * Move CA1060 suppression to cover class def
1 parent f841534 commit 36c23c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CommunityToolkit.App.Shared/Controls/TitleBar/NativeMethods.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace CommunityToolkit.App.Shared.Controls;
1212

13+
#pragma warning disable CA1060 // Move pinvokes to native methods class
1314
public partial class TitleBar : Control
1415
{
1516
[DllImport("Shcore.dll", SetLastError = true)]
@@ -42,3 +43,4 @@ private double GetScaleAdjustment()
4243
}
4344
}
4445
#endif
46+
#pragma warning restore CA1060

0 commit comments

Comments
 (0)