Skip to content
Discussion options

You must be logged in to vote

I just took a quick glance, so no guarantees but this are my notes / recommendations:

  • Why do you call New()? If I understand correctly you create a new window which is never used? I believe the call is obsolete?
  • you should be able to keep the code almost exactly like it is just use an Initialize method instead of an internal constructor: https://gircore.github.io/docs/integration/diagnostic/1002.html
  • it should be possible to keep the class internal.
  • you probably need to apply MemberNotNull attributes above the initialize method to get rid of nullability warnings.

I will update the documentation of 1002 to contain a sample with "MemberNotNull".

I opened: #1558

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PlatinumLucario
Comment options

@badcel
Comment options

Answer selected by PlatinumLucario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants