pinvoke icon indicating copy to clipboard operation
pinvoke copied to clipboard

Refactor FacilityCode bitshift op to Facility properties

Open BinToss opened this issue 3 years ago • 0 comments

Simply put, this implies moving the bitshift operation out of the enum definition and into the NTSTATUS.Facility and HResult.Facility properties. This is more or less the same as what was done to solve #600.

This solution grants users of this library easier understanding of the FacilityCode enum values.

Files to be modified:

  • HResult+FacilityCode.cs
  • HResult.cs
  • HResultFacts.cs
  • NTStatus+FacilityCode.cs
  • NTStatus.cs
  • NTStatusFacts.cs
  • PublicAPI.Shipped.txt

BinToss avatar Jul 25 '22 11:07 BinToss