var strList = new List<string>() { "aaa", "bbb", "ccc" };
var str1 = strList.Aggregate((a, b) => a + ", " + b);

=> result : aaa,bbb


var str2 = strList.Aggregate((a, b) => "'" + a + "', '" + b + "'"); => result : 'aaa','bbb' …

'C# > visualstudio' 카테고리의 다른 글

useful shortcut.  (0) 2019.01.24
What kind of shortcut in VisualStudio 2017 and how to change shortcut.  (0) 2019.01.23

1. How to remove unused using.


Press ctrl and continuously press G and R.

You should not release the ctrl until pressing G and R.


2. Cutting line and past it as a new line in the middle of line.


Press ctrl + x where you want to cut the line.

Press ctrl + v where you want to paste it on the before line.




press ctrl + c



press ctrl + v



3. auto complete


Write if and press tab twice then the 'if' will change as follow.


            if (true)

            {


            }


After you change the true value, Hit enter then cursor is located in the middle of the brace.


You can use it at the almost reserved word.




First open the visual studio and then select 도구 menu.

You can see 사용자지정 menu. Click it then You can see below popup screen.




If you click 키보드 button then you will see below popup.




If you Input any value in the 다음 문자열을 포함하는 명령 표시, You will see the related command.

For example, Input 클래스 text then you can ess below popup.



I am focused at the 프로젝트.클래스 추가.

It's shortcut is Ctrl+Alt+C so if you press it shortcut then you will see add new class dialog.


Additionally, If you change the shortcut then focus ont 바로 가기 키 누르기 textbox and then press keyboard what you want to change value.(for example shift + alt + c.)


'C# > visualstudio' 카테고리의 다른 글

Convert List<string>to a string divided into comma.  (0) 2019.01.30
useful shortcut.  (0) 2019.01.24

+ Recent posts