Find structs without StructLayout attribute
ProprietaryDetect struct declarations without [StructLayout] attribute. Adding [StructLayout(LayoutKind.Auto)] allows the CLR to optimize field layout for better memory usage.
OpenRewrite. Recipes. CSharp. CodeQuality. Performance. FindMissingStructLayoutmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Performance. FindMissingStructLayoutInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.