mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
Suppress "CA1051:Do not declare visible instance fields" for structs
This commit is contained in:
parent
85813a9b8f
commit
bea215bffa
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
namespace Awake.Core.Models
|
namespace Awake.Core.Models
|
||||||
{
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1051:Do not declare visible instance fields", Justification = "This rule does not make sense for structs.")]
|
||||||
public struct BatteryReportingScale
|
public struct BatteryReportingScale
|
||||||
{
|
{
|
||||||
public uint Granularity;
|
public uint Granularity;
|
||||||
|
@ -6,6 +6,7 @@ using System.Runtime.InteropServices;
|
|||||||
|
|
||||||
namespace Awake.Core.Models
|
namespace Awake.Core.Models
|
||||||
{
|
{
|
||||||
|
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1051:Do not declare visible instance fields", Justification = "This rule does not make sense for structs.")]
|
||||||
public struct SystemPowerCapabilities
|
public struct SystemPowerCapabilities
|
||||||
{
|
{
|
||||||
[MarshalAs(UnmanagedType.U1)]
|
[MarshalAs(UnmanagedType.U1)]
|
||||||
|
Loading…
Reference in New Issue
Block a user