Browsing 7239 questions and answers with Jon Skeet
using directives don't work like that. You can't provide part of a namespace name in the using directive, and then the rest elsewhere. From section 9.4.2 of the C# 5 specification: A using-namespace-directive imports the types... more 4/2/2014 2:16:58 PM
Well it's quite simple. Here's the declaration of setShippingDest: public void setShippingDest(String inCustName, String inDestn) And here's how you're trying to call it: shipOrder.setShippingDest("Broome"); You've provided one... more 4/2/2014 1:49:39 PM
javac.exe (on my installation, JDK 1.8 on Windows x64) is about 15K in size. This isn't the full compiler. The compiler itself really is written in Java, and javac.exe is just a launcher, effectively. This is true of many of the tools that... more 4/2/2014 9:34:05 AM
Well it calls Cast<DataRow> once, but that will actually cast each item as it's fetched. So there is a cast on each iteration (at least potentially; Cast has an optimization when it knows it's not necessary) but there's only a single... more 4/2/2014 8:39:45 AM
195 is not in the ASCII range. Unfortunately there are many sites around which show "ASCII tables" containing characters over 127. These are often called "extended ASCII" - often with a false implication that there's only one such... more 4/2/2014 7:16:52 AM
Yes, delegate types are classes - each concrete delegate type inherits from MulticastDelegate, and you can pass around delegate references just like you can pass any other kind of reference. There are various ways in which they're handled... more 4/1/2014 7:19:38 PM
Even aside from your race condition, Dictionary<,> isn't thread-safe. You should be using ConcurrentDictionary<,> and in this case probably the AddOrUpdate method to perform the modification atomically. (I assume that you want... more 4/1/2014 3:40:22 PM
As per the documentation, just set the format property. See the configuration section for different ways of setting options. For example (using datetimepicker instead of datepicker): $('.datetimepicker').datetimepicker({ format:... more 4/1/2014 3:36:44 PM
If you only need to cope with decimal points, so you don't need to handle grouping separators, the simplest option would be to just replace any commas with dots: string input = ...; input = input.Replace(',', '.'); double value; if... more 4/1/2014 3:25:34 PM
By default, the .class file will be generated alongside the .java file. Options: Use -d . when compiling to generate the classes relative to the current directory (including creating subdirectories for packages): > javac -d .... more 4/1/2014 2:22:38 PM