Browsing 7239 questions and answers with Jon Skeet
Basically, Console.ReadKey is available in the full framework, but isn't available in .NET Core. That's why it's saying it's "Available" for ASP.NET 5.0 (building against the full framework) but "Not available" for ASP.NET Core 5.0... more 6/2/2015 6:04:00 AM
(This answer was provided when the question was at revision 1. The OP is editing the question in response to the answer, which makes the answer make less sense - rather than me try to keep up with the edits, please refer to revision 1 to... more 6/2/2015 5:54:54 AM
Just quote the literal part with single quotes, double-quotes, or escape each character with a backslash: string date = DateTime.Now.ToString("MMMM dd 'de' yyyy", ci); string date = DateTime.Now.ToString("MMMM dd \"de\" yyyy", ci); string... more 6/1/2015 2:10:06 PM
do I need to strip off the prefix of data:image/jpeg;base64, and then decode the remainder? Yes - the prefix isn't base64-encoded text, it's just saying that the rest is base64-encoded (and what the mime-type is). We don't know... more 6/1/2015 12:52:51 PM
JLS 15.12.2 is the relevant bit of the spec to look at here. In particular - emphasis mine: The remainder of the process is split into three phases, to ensure compatibility with versions of the Java programming language prior to Java... more 6/1/2015 12:34:43 PM
What is causing the file to be closed at this point? Your call to R.Close() in writeDGVrowListToBinaryFile. You shouldn't be closing the writer in that method. You almost never want to close a file handle (or other disposable... more 5/31/2015 9:09:35 AM
These: System.out.println(date.DAY_OF_MONTH); System.out.println(date.MONTH); System.out.println(date.YEAR); Should... more 5/30/2015 5:55:01 AM
You want to create a new instance of Property for each record. Currently you've got this Property prpty = new Property(); ... outside the loop, so your linked list consists of many references to the same object. That line should be... more 5/30/2015 4:51:25 AM
You don't need a separate library to do testing of time-based code - you just need to treat "the current time provider" as a dependency like you would anything else. So avoid calls to new Date(), Calendar.getInstance() etc in Java, and... more 5/30/2015 4:46:50 AM
Isn't the return type for a ternary expression evaluated at runtime? No, absolutely not. That would be very contrary to the way Java works, where overload resolution etc is always performed at compile-time. What would you expect to... more 5/29/2015 4:16:15 PM