-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Avoid localizing parameter name #80116
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
Conversation
|
||
For Each tree As SyntaxTree In trees | ||
If tree Is Nothing Then | ||
Throw New ArgumentNullException(String.Format(VBResources.Trees0, i)) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:
roslyn/src/Compilers/CSharp/Portable/Compilation/CSharpCompilation.cs
Lines 903 to 906 in 09be0d7
if (tree == null) | |
{ | |
throw new ArgumentNullException($"{nameof(trees)}[{i}]"); | |
} |
There was a problem hiding this comment.
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.
Thanks! |
Parameter name that's part of
ArgumentNullException
should not be localized.