Browsing 7239 questions and answers with Jon Skeet
It looks like that's now in NetworkConnector (which extends Connector) - presumably because some connectors don't run over a network. If you know that your server will be using a NetworkConnector, you could presumably... more 9/25/2015 10:44:35 AM
As the compiler says, you're trying to assign an int value (the result of a[i] + 32 for example to a char variable (a[i]). The "surprise" part here is that the result of a[i] + 32 is a char... but it's only a surprise if you don't look at... more 9/25/2015 10:24:29 AM
This sort of thing is precisely why I started the Noda Time project. It teases out assumptions you might have. For example, in your example, 2:20am occurs twice - so when you say new DateTime(2015,10,24, 2,20, 00) how is the system meant... more 9/25/2015 9:34:22 AM
There are two problems here. Firstly, when you're parsing the value you're not specifying the time zone - so it's using your local time zone. Secondly, you're not using any formatter for the result - you're just calling... more 9/25/2015 7:55:57 AM
The documentation (which was slightly harder to locate than I'd have hoped, admittedly) is reasonably clear: Posted whenever the calendar day of the system changes, as determined by the system calendar, locale, and time zone. So... more 9/25/2015 7:48:29 AM
It's in section 18.6 of the spec - the fixed statement. The relevant productions are: fixed-statement: fixed ( pointer-type fixed-pointer-declarators ) embedded-statement fixed-pointer-declarator: ... more 9/24/2015 7:58:30 PM
If you don't mind whether or not it's within a completed element, you could just use: var hasWelcomeCall = call.Descendants("welcomecall").Any(); If it can be within any one of a number of completed elements, but you want to check that... more 9/24/2015 7:17:28 PM
Firstly, I wouldn't use DateTime.Now - you should almost certainly be using DateTime.UtcNow, assuming you really want it to be an interval of elapsed time rather than local time. An interval of local time could lead to some really weird... more 9/24/2015 6:46:41 PM
You need to trim the time zone abbreviation off using normal string operations, then specify a custom date and time format string. For example: // After trimming string text = "Thu Sep 24 2015 00:00:00 GMT+0530"; var dto =... more 9/24/2015 3:10:26 PM
Going from StringComparison to StringComparer is simple - just create a Dictionary<StringComparison, StringComparer>: var map = new Dictionary<StringComparison, StringComparer> { { StringComparison.Ordinal,... more 9/24/2015 2:34:19 PM