Browsing 7239 questions and answers with Jon Skeet
If you mean you just want the * to be passed on directly, just use single quotes to avoid the shell from applying globbing: mvn deploy:deploy-file [...] '-Dfile=Spigot/Spigot-Server/target/spigot-*.jar' more 4/16/2016 8:39:50 AM
It's the same as foo2. The difference with foo3 is that the property access won't even consult foo3 - Foo3 is compiled to code equivalent to public static int Foo3 { { get { return 9; } } } Now admittedly from the perspective of... more 4/15/2016 7:32:31 PM
Why? That's just the rules of the language. If you're creating a class called Car, it can't contain any members (properties, methods, fields, nested types, events) called Car. It would be really confusing if this were allowed,... more 4/15/2016 11:02:28 AM
I have the LocalDateTime with established timezone systemDefault No, you don't. You started with a LocalDateTime, but then you converted it into a ZonedDateTime. A ZonedDateTime is effectively a LocalDateTime with a ZoneId and an... more 4/14/2016 6:00:11 PM
Sounds like you want the instanceof operator: At run time, the result of the instanceof operator is true if the value of the RelationalExpression is not null and the reference could be cast to the ReferenceType without raising a... more 4/14/2016 10:24:46 AM
The simplest fix would be to use the language support for iterators: foreach (object value in ListBox1.Items) { list2.Add(Conversions.ToString(value)); } If you expect the values to already be strings, you could make the foreach... more 4/14/2016 9:54:06 AM
Separate the namespace from the local name, using the XName +(XNamespace, string) operator for convenience: data.Add(new XAttribute(XNamespace.Xml + "space", "preserve")); Note that you can write the whole of your element creation in a... more 4/14/2016 8:53:45 AM
You need to do three things when the number changes: Remove any existing textboxes Create a new array with the new size, and save a reference to that new array into your field (textBoxesQ) Initialize the array So something like: if... more 4/14/2016 6:14:21 AM
You can use a JsonReader (probably JsonTextReader as the concrete type) to parse the JSON as a stream, a bit like XmlReader. So for example: using System; using System.IO; using Newtonsoft.Json; public class Test { static void... more 4/13/2016 3:02:56 PM
Basically that property file is broken. A property file is a sequence of key/value pairs which is build into a map, so it requires the keys be unique. I suspect that if you load this into a Properties object at the moment, you'll get just... more 4/13/2016 12:36:58 PM