terrafx.interop.windows icon indicating copy to clipboard operation
terrafx.interop.windows copied to clipboard

List of things for "the analyzer" to point out

Open rickbrew opened this issue 2 years ago • 0 comments

We can keep track of things that can't really be solved in source, but can be flagged by an analyzer.

  • Incorrectly using Unsafe.SizeOf<T>() or Marshal.SizeOf(typeof(T)) on structs like SHELLEXECUTEINFOW. It can produce the wrong size on certain platforms, and T.SizeOf should be used instead.

rickbrew avatar Oct 31 '21 23:10 rickbrew