codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

Wrong cleaning up in C#

Open Nitload-NSI opened this issue 1 year ago • 1 comments

Environment

  • Visual Studio version: 2022
  • Code language: C#

Description

When cleaning up C# code containing unsafe code of fixed-size buffer, CodeMaid will automatically remove the "fixed" keyword, causing an error.

As the fallowing:

private fixed char name[30];

After cleaning up:

private char name[30];

Nitload-NSI avatar Mar 16 '24 18:03 Nitload-NSI

It also removes the required keyword if we add to a property.

pankaj-nikam avatar Mar 17 '24 00:03 pankaj-nikam