microsoft / CsWin32

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GdiPlus Color struct is generating with statics as fields

JeremyKuhne opened this issue · comments

Metadata defines as follows:

// Windows.Win32.Graphics.GdiPlus.Color
using Windows.Win32.Foundation.Metadata;

[Documentation("https://learn.microsoft.com/windows/win32/WMP/color-element")]
public struct Color
{
	public uint Argb;

	public const int AliceBlue = -984833;
	/// ...

CsWin32 is generating:

namespace Windows.Win32
{
	namespace Graphics.GdiPlus
	{
		[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.75-beta+6d384e22ca")]
		internal partial struct Color
		{
			internal uint Argb;

			internal int AliceBlue;
			// ...