Browsing 7239 questions and answers with Jon Skeet
It sounds like you just don't want the cast to string, which is documented as: If the XElement has children, the concatenated string value of all of the element's text and descendant's text is returned. You probably want ToString()... more 3/28/2015 8:44:42 AM
It's just the java.lang.System class. (The java.lang package is imported automatically.) nanotime() is a static method within System, and out is a static field in System - so it's just making use of those members. If you're not sure what... more 3/28/2015 8:33:46 AM
I'm having a hard time following the question, but I think you just want to change your select clause to: select new XElement("Client", dbTemplate.Zip(fields, (name, value) => new XElement(name, value))) more 3/28/2015 7:46:13 AM
You need to set the calendar to be in that year and month before asking for the maximum value, e.g. with cal.set(year, month, 1); (Or with the calendar constructor as per David's answer.) So: public static int getMaxDaysInMonth(int... more 3/28/2015 7:26:27 AM
"2I==" represents the numbers 54, 8, (padding x2), as per Wikipedia. In other words, the bits represented are: 110110 000100 XXXXXX XXXXXX (Where X represents an "I don't care, it's from padding") However, because the padding... more 3/26/2015 8:19:02 PM
How big is that orange rectangle going to be? For primitives, you already know the size already. But what about for objects? For concrete final classes, you'd know how much memory is going to be used already... but what about other... more 3/26/2015 4:59:30 PM
This seems like something the compiler could easily check rather than relying on runtime failure. Yes, it absolutely could - but only if there's something in the language to prompt it to do so. There isn't, in C# - it's a pretty odd... more 3/26/2015 11:19:47 AM
I would take an approach of: Determine the most recent publication time Check whether the current file was downloaded after that I'd do this with my Noda Time, using Instant as the result of the first step and the value I'd remember in... more 3/26/2015 9:28:26 AM
You have to chain to the constructor like this: public CalendarController() : this(new DbContext()) { } That's the syntax for chaining to any constructor in the same class - it doesn't have to be from a parameterless one to a... more 3/25/2015 8:57:10 PM
I forgot to mention, this isn't just me confusing the length of Long Integer in Access is it? I assume that it's 64-bit, please correct me if I'm wrong. Yup, I think that's exactly the problem. For example, from "Field types in MS... more 3/25/2015 7:53:52 PM