Browsing 7239 questions and answers with Jon Skeet
Yes - it has to, given that it's got to return true or false. It can't possibly do that without running the query. If you're going to conditionally return ToList(), you'd be better off writing: var list = query.ToList(); return... more 5/5/2015 1:50:30 PM
The problem is that you're not specifying a time zone in your DateFormat - so the system default time zone is being used. The result is midnight in your local time zone (IST) but in the XMLGregorianCalendar, it's being rendered in... more 5/5/2015 1:24:29 PM
No, it's not possible to introduce your own literal types in Java. The language specification gives the syntax for numeric, character and string literals, and that's it. You can't even add your own implicit conversions from an existing... more 5/5/2015 12:03:48 PM
I've created a servlet to let users download a file. That servlet will be running on the web server. It's not running on the user's local computer - so it can't change anything about the user's local file system. Even your... more 5/5/2015 11:01:24 AM
The POSIX format only seems to cater for a single rule - whereas in reality, the rules change over time. It's also not clear to me whether POSIX rules allow for 24:00 as a transition time, and the expectation that all transitions are... more 5/5/2015 10:07:45 AM
You haven't told us the type of dtable, but assuming it's DataTable, I suspect you intended to use DataTableExtensions.AsEnumerable rather than Enumerable.AsEnumerable... in which case you're probably just missing either a using directive... more 5/5/2015 9:49:54 AM
Yes, by redesigning to use the template method pattern and including an abstract method: public abstract class AbstractSuper { public final String foo() { // Maybe do something before calling bar... String... more 5/5/2015 7:33:26 AM
Look at this call - I've put the arguments on different lines: String.format( "Total $%.2f", "Total Tax $%.2f", "Grand Total $%.2f", totalCharge, totalTax, grandTotal) That's passing "Total $%.2f" as the format... more 5/5/2015 7:27:12 AM
If you need to schedule based on calendrical values - rather than just elapsed time, basically - then you either need to wrap Timer in your own code, or use a library which has already been built for this purpose. In this case, I suspect... more 5/5/2015 6:14:27 AM
Looks like you just don't have the event hooked up. Go into the designer, select the btnback button, then in the Events tab of the Properties window, find the KeyPress event and subscribe the btnback_KeyPress method to it as a handler. more 5/2/2015 8:10:27 PM