2020年4月20日 星期一

[Linq] groupby vs tolookup

簡單紀錄一下

主要差異在tolookup會馬上執行, groupby 會有延遲執行的特性

ref : https://stackoverflow.com/questions/43661143/use-selectmany-and-groupby

2020年4月6日 星期一

[Resharper] short cut

基本快捷鍵紀錄

  • ReSharper Shortcuts (at least you should know)
    • Quick Action: Alt+Enter
    • Refactor This... : Ctrl+Shift+R
    • Extract Method: Ctrl+R, M
    • Rename: Ctrl+R, R
    • Introduce Variable: Ctrl+R, V
    • Introduce Field: Ctrl+R, F
    • Introduce Parameter: Ctrl+R, P
    • Inline variable/field/parameter/method/class: Ctrl+R, I
    • Move file/folder/namespace/another type/instance method: Ctrl+R, O
    • List File Members: Alt+\
    • Search Everything: Ctrl+T
    • Extend Selection: Ctrl+W, Ctrl+W
    • Shrink Selection: Ctrl+Shift+W, Ctrl+Shift+W
    • Go to Previous Function: Alt+Up Arrow
    • Go to Next Function: Alt+Down Arrow
    • Go to Previous error/highlight/issue: Alt+PageUp
    • Go to Next error/highlight/issue: Alt+PageDown
    • Run All Test: Ctrl+U, L
    • Run Last Test: Ctrl+U,U
    • Reformat Code: Ctrl+Alt+Enter
    • Clean Up: Ctrl+E, Ctrl+C
    • Duplicate Code(selection/line/block): Ctrl+D
    • Insert New Line:Shift+Enter
    • Insert Surround Template: Ctrl+E,U
    • Build Solution: Ctrl+Shift+B
    • Start without Debug: Ctrl+F5
    • Backward Navigate: Ctrl+-