-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Improve HttpUtility.ParseQueryString formatting and code snipped for C# #9251
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
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
.____ |
Tagging subscribers to this area: @dotnet/ncl Issue DetailsHi all! I checked the I could create a pull request and change these things if that's okay.
|
I would also note that this sample does not provide an easy way to run it and actually see the results, in particular the fact that:
Would it be simpler to just remove all the Asp.Net specific renderings, and just |
I completely agree with you. I could redo the code with better and simpler examples. What do you think? Also, @MichaelDeutschCoding do you know if I can already make the pull request or is it better to wait until someone from Microsoft "allows" it? And thanks for the response and the good suggestions! |
From what I've seen, I think it's fine to open a PR, and then get input from someone on the team on the changes you make. Generally, they're more than happy for community contributions. Here's one example of snippets that include the sample output. You can include something like that in this snippet as well. If you do change the language to C# (as opposed to the current aspx-csharp), make sure to update that reference to the snippet as well as changing the extension from (If you're up to it, you may want to try updating the Visual Basic example as well 👍) |
Okay, thanks for the detailed reply with all the information. I will give it a try! |
One more question, maybe you know @MichaelDeutschCoding do you know, once all the changes are made, how to test the solution and see if the result is correct? I can't find the information anywhere in this repo... Thanks! |
Personally, I use a program called LinqPad to run small snippets like this and confirm they work as I expect. Also helpful if you'd want to copy/paste the output to display it in the snippet. You can also find online platforms that can run .NET code. The official Microsoft one is Try .NET (see more about it here). And .NET Fiddle is an older site that many people use which provides similar functionality. You can even embed a Try .NET window into this documentation page to allow users to run your sample directly in their browser without having to even open another tab! Just add |
Thanks for all the information, that's very helpful. But my question was more about the |
Hi all!
I checked the
HttpUtility.ParseQueryString
method documentation and I realized that some of the formatting and variable naming could be greatly improved.I could create a pull request and change these things if that's okay.
The text was updated successfully, but these errors were encountered: