Browsing 7239 questions and answers with Jon Skeet
I wouldn't expect just running the nuget install to add a reference into your project - the nuget installer is basically just downloading the package for you. You could manually add a reference in your project to the relevant assembly... more 9/10/2015 9:16:16 AM
As it was suggested on Twitter, here's a Noda Time solution: // As of 2.0, it will be CalendarSystem.HebrewCivil var calendar = CalendarSystem.GetHebrewCalendar(HebrewMonthNumbering.Civil); var today =... more 9/10/2015 7:27:26 AM
Lists.partition is working properly - it's just you're not using it properly. You've got a rounding problem, basically: 5 / 2 evaluates to 2, so you're asking for partitions of size 2... so you get 3 partitions. You actually want a... more 9/10/2015 6:13:22 AM
A zip file is not a text file, so don't try to use it as if it were. It's vitally important that you distinguish between text data and binary data - not just here, but all over the place. Hashing a file is simple though. Unfortunately as... more 9/9/2015 4:54:01 PM
Basically there are two problems here: You're grouping by Day rather than Date, which I doubt you want to do You're not using the fact that you've already got the alias as the key in the outer grouping You can actually do this more... more 9/9/2015 4:43:51 PM
Why is this and is there a way for me to use the second method for including jars? It's because specifying the classpath for compilation just tells the compiler where to find types. The compiler doesn't copy those types into its... more 9/9/2015 3:56:29 PM
Well, there are various options: You could use Task.ContinueWith, specifying the error callback using TaskContinuationOptions.OnlyOnFaulted You could await the task and just catch the exception which will be unwrapped... more 9/9/2015 8:21:37 AM
Why calling of extension methods declared on Object differ from extension methods declared on other types if Option Strict On is present? Because your calling context (which you haven't shown) isn't convertible to Integer, but is... more 9/8/2015 4:35:57 PM
That basically says that the unit test runner is starting up as a 32-bit process. How you configure that will depend on which unit test runner you're using (there are many of them). When you're running your unit tests, any preference your... more 9/8/2015 2:44:29 PM
It's calling the constructor of Kb. It's easier to show this in three statements: K.Ka.Kb x1 = new K.Ka.Kb(); K.Ka.Kb.Kc x2 = x1.new Kc(); // Pass x1 as the hidden constructor arg K.Ka.Kb.Kd.Kd k = x2.new Kd(); // Pass x2 as the hidden... more 9/8/2015 2:37:55 PM