Skip to content

Conversation

Youssef1313
Copy link
Member

Parameter name that's part of ArgumentNullException should not be localized.

@Youssef1313 Youssef1313 requested a review from a team as a code owner September 3, 2025 14:19
@dotnet-policy-service dotnet-policy-service bot added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Sep 3, 2025

For Each tree As SyntaxTree In trees
If tree Is Nothing Then
Throw New ArgumentNullException(String.Format(VBResources.Trees0, i))
Copy link
Member

Choose a reason for hiding this comment

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

can this resource be removed? or is still needed for seomthing else? does teh C# side do teh same thing?

Copy link
Member Author

Choose a reason for hiding this comment

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

@CyrusNajmabadi Yes it should be removed. I have the removal already in #80098 so I didn't redo it here, but if you prefer to do in this PR I'm fine with it.

Copy link
Member Author

Choose a reason for hiding this comment

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

C# side doesn't localize:

if (tree == null)
{
throw new ArgumentNullException($"{nameof(trees)}[{i}]");
}

Copy link
Member

Choose a reason for hiding this comment

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

thanks. i'm fine either way. if it's coming in anotehr pr, that works for me.

@jjonescz jjonescz merged commit c3b82e0 into dotnet:main Sep 4, 2025
25 checks passed
@jjonescz
Copy link
Member

jjonescz commented Sep 4, 2025

Thanks!

@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Sep 4, 2025
@Youssef1313 Youssef1313 deleted the loc branch September 4, 2025 10:35
@akhera99 akhera99 modified the milestones: Next, 18.0 P1, 18.0 P2 Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants