| Joe 的个人资料Joe Mayo日志列表 | 帮助 |
|
4月18日 Visual Studio Split Screen for Writing TestsSplit screen in Visual Studio can be used for various reasons, but it really excels when writing tests. To split a screen, right click on the Tab in the editor, and select New Horizontal Tab Group. You can tab vertical too. To undo the split, right-click on the bottom (or right) tab and select Move to Previous Tab Group. The following figure shows a test in the top pane and the method being tested in the bottom pane: 4月14日 Parsing a Twitter Date with C#I’ve been doing a lot of manual parsing on Twitter dates with LINQ to Twitter and it kind of bugged me how primitive the implementation was. Messing around today, I put this together: var twitterDate = DateTime.ParseExact("Thu Jan 24 22:14:29 -0700 2008", "ddd MMM dd HH:mm:ss %zzzz yyyy", null); One statement; That’s more like it. |
|
|