Browsing 7239 questions and answers with Jon Skeet
I don't believe there's any such type within Joda Time - and Interval deals with instants, where it sounds like you're interested in day/month values anyway. You should probably construct your own type that is composed of two MonthDay... more 10/15/2014 4:29:19 PM
Well you just need a different way of converting a Set<Node> to a String. Currently you're using the default toString() implementation, but it's easy to write your own, e.g. private static String commaSeparate(Iterable<?>... more 10/15/2014 4:21:50 PM
Yes, the problem is that in increaseRow you're calling monitor.signal() without having locked lock first. From the documentation for Condition.signal(): An implementation may (and typically does) require that the current thread hold... more 10/15/2014 1:54:54 PM
I suspect you want IsFinal: To determine if a method is overridable, it is not sufficient to check that IsVirtual is true. For a method to be overridable, IsVirtual must be true and IsFinal must be false. For example, a method might be... more 10/15/2014 1:18:03 PM
The problem is that you're calling ToString() on the result of calling Descendants(). It's not really clear what you expected that to do, but you are getting the elements correctly. For example: using (TextReader reader =... more 10/15/2014 10:39:05 AM
No. It violates the contract of Object.Equals: The following statements must be true for all implementations of the Equals(Object) method. In the list, x, y, and z represent object references that are not null. ... ... more 10/15/2014 8:49:52 AM
The problem is that you're using 4294967295 as an int literal - but it's not a valid int value. You want it to be a long literal, so you need to put the L suffix on it. This is fine: long x = 4294967295L; From JLS section 3.10.1: An... more 10/15/2014 7:17:46 AM
You can sort of do this with Xamarin, as well as building Android applications. You still need to have a Mac in order to build iOS/Mac OS X applications, but you don't need to interact with it directly - it just needs to be on the network... more 10/15/2014 6:29:04 AM
I'd argue that those methods are asynchronous - but only by virtue of the API part. That asynchrony just propagates its way up. Your second implementation of Repository.GetItem() is problematic, IMO: You should not call an awaiter's... more 10/15/2014 6:06:12 AM
You never pass an array object at all. You pass an array reference, which is always going to be passed by value. If you want to create a copy of the array, then pass a reference to that copy to the method, the simplest approach is... more 10/15/2014 5:49:56 AM