Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeBitfieldAttribute has bizarre Doc attribute #1820

Closed
AArnott opened this issue Jan 11, 2024 · 0 comments
Closed

NativeBitfieldAttribute has bizarre Doc attribute #1820

AArnott opened this issue Jan 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AArnott
Copy link
Member

AArnott commented Jan 11, 2024

In the metadata, I see this:

[StructLayout(LayoutKind.Auto, CharSet = CharSet.Auto)]
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true, Inherited = true)]
public sealed class NativeBitfieldAttribute : Attribute
{
	public extern NativeBitfieldAttribute([In] string name, [In] long offset, [In][Documentation("https://learn.microsoft.com/windows/win32/direct3dhlsl/dx-graphics-hlsl-length")] long length);
}

Note the presence of a [Documentation] attribute on the last parameter, which seemingly has nothing to do with that parameter (or the attribute in general).

@AArnott AArnott added the bug Something isn't working label Jan 11, 2024
@mikebattista mikebattista self-assigned this Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants