Automatically convert between switch case and if else (in C#) [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am looking for a tool or an extension to visual studio that would allow easy conversion between switch case and if else statements.
I have tried to search on google but I mostly find performance discussions related to switch case and if else. I also found that Eclipse or InelliJ have support for this, but it does not work for C#.

You can try RefactoringEssentials
Edit
The repository link is now https://github.com/icsharpcode/RefactoringEssentials.
But it has been shutdown because IDEs now provide refactoring utilities by default. If you need more custom refactoring options, take a look at this repo https://github.com/ironcev/awesome-roslyn#open-source-analyzers-code-fixes-and-refactorings

Related

Prettier extension, but for C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 9 months ago.
Improve this question
I've got used to VSC clean up my code, while working with React. Now that I'm using C#, I'm not able to find anything like prettier for this language. I'm looking for some way of setting up my VSCode to do this for me, stuff like: removing white spaces, adding semicolons after each end of the code snippet, broke the lines if the code line was too long (like a long array or parameters). Is there any way for that or was it just one of bonuses of writing in javascript?
Resharper, Code Maid Probably others as well

"Remove unused using statements"... but keep a few default ones [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Does anyone know of an automated way to remove unused using statements from C# files, but keep certain ones that the developer specifies?
CodeMaid has a feature for this purpose. It's a free Visual Studio extension. Once it's installed, you can specify the using statements that you will always want to keep.

How to convert .Net comments in RST format into HTML? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
In Linux there're many tools to read and convert the comments in code into a HTML/PDF document. I am now working on a .Net project, and I am wondering if we have similar tools to convert the comments in .Net code into a HTML/PDF document?
I tried Google, but did not give me any useful result :( Maybe I am not search with the right keywords.
You might want to look at Sandcastle: http://broadcast.oreilly.com/2010/09/build-html-documentation-for-y.html
Sandcastle is a tool that generates HTML / Visual Studio help bundles based on your code comments and actual code itself.
It's relatively easy to use once you get it set up.
But beware! Big projects can cause OutOfMemoryExceptions.

Looking for an one file AOP proxy generator [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm working on an automatic pageable collection for WPF. I'm using internally the excellent library LinFu.DynamicProxy. I would like to minimize the dependencies, and I did not find any "one file" solution implementyng a DynamicProxy generator, so I would like to ask if you are aware of such a component.
Thanks,
Felice
Well, I found a solution writing one myself, really bound to the functionality I actually need. Here is the code for reference.

.NET port of OGNL Library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Does anyone know of a good .NET port of the OGNL library here? It looks like I could use something like this and the only one I have found so far is on SourceForge here and hasn't been updated since 2005.
I've been looking for something like this as well. Unfortunately, there isn't anything I'm aware of that's feasible for use in a real project. Sorry!
One suggestion that might be of help is to e-mail the author directly. Oftentimes, they abandon the project because they've found that another existing project's work is more in line with what they were trying to accomplish.

Categories