- Notifications
You must be signed in to change notification settings - Fork5.2k
Added a quick check condition for GetStatusFromCode void#122053
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
Enhance GetStatusFromCode method with detailed XML documentation, clarifying the handling of Windows ICMP status codes and exceptions.
lighting9999 commentedNov 29, 2025
@dotnet-policy-service agree |
if( statuscode==0) code to change GetStatusFromCodeif( statuscode==0) code to change GetStatusFromCodeif(statuscode==0) code to change GetStatusFromCodeam11 commentedNov 29, 2025
GetStatusFromCode is a private 'ensure' method which doesn't need XML document, and certainly not elaborate one.
It doesn't improve the codegen for statuscode==0. |
if(statuscode==0) code to change GetStatusFromCodehuoyaoyuan commentedNov 29, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There is no performance change, and only makes the code bigger. The comments are trivial with unnecessary statements. The pull request doesn't provide any value. |
Enhance GetStatusFromCode method with detailed XML documentation, clarifying the handling of Windows ICMP status codes and exceptions.