Browsing 7239 questions and answers with Jon Skeet
The normal way of formatting a Joda Time value is using a formatter. In this case, the format you want is already available, except for the Z: DateTimeFormatter formatter = ISODateTimeFormat.dateHourMinute(); String text =... more 4/5/2016 8:13:01 PM
From the documentation from Convert.ToInt32(double): Return Value Type: System.Int32 value, rounded to the nearest 32-bit signed integer. If value is halfway between two whole numbers, the even number is returned; that is, 4.5 is... more 4/5/2016 7:57:07 PM
If System.out.println(name) prints out a backslash followed by a u etc, then that's what's in the string... whereas in String name2 = "\u5f20\u4f73\u73ae"; ... you've got Unicode escape sequences... that's just 3 characters. If you want... more 4/5/2016 6:45:47 PM
It's in the Foo.csproj.user file, as that's basically a user-specific setting. (Different users will often want different command line options.) I wouldn't suggest pushing that to git. more 4/5/2016 4:29:48 PM
Is there any way to use order by with multiple fields? Not at the moment, no. It's a documented limitation, although it sounds like work is being done on it: You cannot perform the following: [...] Order By multiple... more 4/4/2016 6:05:36 AM
I'm slightly surprised at the kind of error you're getting, but there are two places you need to take account of the possibility of the result being null: Within the query, where r can be null. (If you don't want to match when there are... more 4/4/2016 5:54:32 AM
You're performing string concatenation. The value of st is "56.0", and then you're performing a concatenation of that and the int 3, giving a result of "56.03". The string concatenation + operator is described in JLS 15.18.1. It starts... more 4/3/2016 8:22:24 PM
You need to specify List<string> as the type argument to DeserializeObject: var list = JsonConvert.DeserializeObject<List<string>>(returnedJson); more 4/2/2016 3:02:25 PM
Visual Studio 15 is the version after Visual Studio 2015. The "15" is effectively the mostly-internal version number, and the "2015" is the branding version. Yes, it's very confusing. Other internal/branding mappings: Visual Studio 97 /... more 4/2/2016 2:57:48 PM
The Z in your input indicates a UTC time, but the default behaviour of Convert.ToDateTime is to convert the result to your local time. If you look at the result of Convert.ToDateTime("2016-03-30T17:15:25.879Z").Kind you'll see it's... more 4/1/2016 1:52:17 PM