Browsing 7239 questions and answers with Jon Skeet
It's not really that "one object" can - it's just you're in code which has access to that variable, and unfortunately Java allows you to access static members (both variables and methods) as if they were instance members. This ends up with... more 3/14/2015 3:15:21 PM
I think I've got it. The problem is that you're not specifying a time of day, so createFromFormat is using "the current system time": If format does not contain the character ! then portions of the generated time which are not... more 3/14/2015 2:25:31 PM
I wrote a little command-line game That's the problem then. javaw.exe is designed to run GUI applications - it doesn't allocate a console. If you change the file association for .jar to run java.exe instead, it will launch a console... more 3/14/2015 1:25:54 PM
Your substrings variable is a string[], but disposableSeparators is a char[] - and Except works on two sequences of the same type. Either change disposableSeparators to a string[], or use something like: return... more 3/14/2015 12:26:13 PM
I suspect you just want: public Action<T> Builder<T>() where T : DbContext Then you could call it as: Action<SpecificDbContext> actionHelper = Builder<SpecificDbContext>(); You don't need the type argument, as... more 3/13/2015 10:28:09 PM
What is the reason behind this restriction? I believe the primary reason was actually Intellisense. Until an IDE knows what sort of collection you're using, it can't suggest which properties you want to use from the elements of that... more 3/13/2015 8:28:04 PM
You're currently trying to convert the textboxes themselves to integers. That's not going to work. You need to convert the text within the textboxes: iDay1 = Convert.ToInt32(txtBox1.Text); (etc). You should absolutely definitely stop... more 3/13/2015 7:57:24 PM
I would probably just reimplement Zip the way you want to. It's really pretty simple - the following is trivially adapted from MoreLINQ. You'll want to give it a better name, mind you... public static IEnumerable<TResult>... more 3/13/2015 7:20:20 PM
For example, America/Kentucky/Louisville is the same as America/Kentucky/Monticello - why do they both exist? Because they're not the same. They may observe the same rules from now onwards, but they haven't always done so. Having... more 3/13/2015 7:04:16 PM
I believe you're observing the way that the Oracle JVM allocates memory. In particular, the whole array has to fit into one "generation". By default, the old generation is twice the size of the new generation - which means for every 3MB... more 3/13/2015 6:59:08 PM