Skip to content

IPInterfaceProperties.GetIPv(4|6)Properties never returns null #11056

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

Merged

Conversation

antonfirsov
Copy link
Member

@antonfirsov antonfirsov commented Mar 6, 2025

The null checking in the code samples is unnecessary and misleading so I'm proposing to delete it.

Moreover, we should call out in the remarks section the necessity of a capability check so users avoid walking into an exception in case of missing protocol support. (As it occurred in dotnet/runtime#111487)

Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl

This comment was marked as outdated.

Copy link

Learn Build status updates of commit ebb4ba2:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Net.NetworkInformation/IPInterfaceProperties.xml ⚠️Warning View Details
snippets/cpp/VS_Snippets_Remoting/NCLNetInfo2/CPP/networkexamples.cpp ✅Succeeded View
snippets/csharp/System.Net.NetworkInformation/DuplicateAddressDetectionState/Overview/networkexamples.cs ✅Succeeded View
snippets/visualbasic/VS_Snippets_Remoting/NCLNetInfo2/VB/networkexamples.vb ✅Succeeded View

xml/System.Net.NetworkInformation/IPInterfaceProperties.xml

  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'see' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'see' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'see' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'see' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'see' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.
  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'see' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@antonfirsov
Copy link
Member Author

@gewarren can you please help with the build here?

  • The previews did not refresh after 2f1f621 and I don't know how to trigger it.
  • Snippets build complains that there is no project file for networkexamples.cpp and networkexamples.vb, but this is an issue preceding the PR. Shall we bypass the check somehow?

Copy link

Learn Build status updates of commit 2f1f621:

✅ Validation status: passed

File Status Preview URL Details
snippets/cpp/VS_Snippets_Remoting/NCLNetInfo2/CPP/networkexamples.cpp ✅Succeeded View
snippets/csharp/System.Net.NetworkInformation/DuplicateAddressDetectionState/Overview/networkexamples.cs ✅Succeeded View
snippets/visualbasic/VS_Snippets_Remoting/NCLNetInfo2/VB/networkexamples.vb ✅Succeeded View
xml/System.Net.NetworkInformation/IPInterfaceProperties.xml ✅Succeeded View

For more details, please refer to the build report.

For any questions, please:

@antonfirsov antonfirsov merged commit 2b6c59b into dotnet:main Mar 8, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants