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

COM struct properties aren't getting access modifiers #785

Closed
JeremyKuhne opened this issue Nov 17, 2022 · 0 comments · Fixed by #786
Closed

COM struct properties aren't getting access modifiers #785

JeremyKuhne opened this issue Nov 17, 2022 · 0 comments · Fixed by #786
Assignees
Labels
bug Something isn't working

Comments

@JeremyKuhne
Copy link
Member

Actual behavior

Properties aren't getting an access modifier and are therefore private and inaccessible.

winmdroot.System.Ole.OLE_HANDLE Handle
{
	get
	{
		fixed (IPicture* pThis = &this)
		{
			winmdroot.System.Ole.OLE_HANDLE __result;
			((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])(pThis, &__result).ThrowOnFailure();
			return __result;
		}
	}
}

Expected behavior

They should be visible.

Repro steps

  1. NativeMethods.txt content:
IPicture
  1. NativeMethods.json content (if present):
{
  "$schema": "https://aka.ms/CsWin32.schema.json",
  "allowMarshaling": false,
  "useSafeHandles": false
}
  1. Any of your own code that should be shared?

Context

  • CsWin32 version: 0.2.128-beta
  • Target Framework: dotnet8
@JeremyKuhne JeremyKuhne added the bug Something isn't working label Nov 17, 2022
@AArnott AArnott self-assigned this Nov 17, 2022
AArnott added a commit that referenced this issue Nov 17, 2022
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

Successfully merging a pull request may close this issue.

2 participants