Browsing 7239 questions and answers with Jon Skeet
Well, you're probably just missing the fact that the Windows time zone data is not the same as the IANA data that Java is using, and that your two Windows 7 boxes probably have a different set of Windows Updates applied. I wouldn't like to... more 6/29/2015 8:19:40 PM
Those are importing namespaces - that's not the same as adding a reference. (Assemblies and namespaces are different.) You should be able to just add an assembly reference to the project in the normal way, in the "Project References" part... more 6/29/2015 7:55:09 PM
Because an int[] isn't an Object[] - it's as simple as that. An element of an Object[] has to be a reference - and an element of an int[] is not a reference. JLS section 4.10.3 talks about the subtype relationships for arrays - in... more 6/29/2015 7:15:01 PM
You're calling getTime() to get a Date instance, and then calling toString() on that, implicitly - that will always use the system local time zone. You want to use SimpleDateFormat so that you can control the time zone used for... more 6/29/2015 3:53:57 PM
I believe your VB code is actually declaring an array and initializing it - not declaring a method. (It's not a local variable - it's a public static field.) So the equivalent in C# would be: public static bool[] HBitEnable = new... more 6/29/2015 6:15:47 AM
Well your first snippet only gives runs whose first text descendant starts with #. Your second snippet gives all text descendants starting with #. So if you've got any runs with a non-first text descendant starting with #, that will be... more 6/29/2015 6:07:32 AM
You can't get one array which is a sliced view of another - but you can make a list view over an array, and then use sublist on that: List<String> stringList = Arrays.asList(strings); List<String> subList =... more 6/28/2015 11:53:38 AM
I strongly suspect you're running in a locale which uses , as the decimal separator... or which uses a different symbol for negation. You can pass in a CultureInfo to specify how to parse - I usually use double.Parse instead of... more 6/27/2015 5:38:33 AM
Anonymous functions and method groups don't have types in themselves - they are merely convertible to delegate types (and expression tree types for some lambda expressions). For the conditional operator to determine the overall type of... more 6/26/2015 7:45:18 PM
I think you've misunderstood the classpath, for starters. You don't put package directories on the classpath - you only put the root of output directories there. I suggest you compile from the src directory, with the output going to a bin... more 6/26/2015 3:24:41 PM