Browsing 7239 questions and answers with Jon Skeet
I've accepted David Fowler's answer as the reason why all of this happened. Now in terms of what I should do about it, it looks like I just need to add a frameworkAssemblies element in the nuspec file for Google.Protobuf: <package> ... more 12/9/2015 10:21:40 AM
If you want to keep the value as an int or Integer, there's nothing to be done here. A number doesn't have a format - it just has a value. For example, an int isn't "in decimal" or "in hex" or "in binary" - if you write int x = 16; int y... more 12/9/2015 7:11:44 AM
Well without the write calls, you're currently creating an empty file to start with, because that's what the FileOutputStream constructor you're calling does. If the file already exists, it is truncated to be 0 bytes long. So when you then... more 12/9/2015 7:06:21 AM
Task.WhenAll returns immediately - but it returns a task which will complete when the tasks have completed. You're ignoring that return value at the moment. You're also not starting the task which calls WhenAll, which is why that task is... more 12/8/2015 8:48:59 PM
Basically, operator overload resolution doesn't include implicit user-defined conversions in order to find the operators that could be applicable. From section 7.3.4 of the C# 5 specification: An operation of the form x op y, where op... more 12/8/2015 5:04:49 PM
It sounds like your thread has a culture which uses "," as the decimal separator. The simplest approach is probably to call string.Format specifying the invariant culture: Parameters[1] = string.Format( CultureInfo.InvariantCulture, ... more 12/8/2015 10:37:06 AM
It should be fine for the external app to create and write to a file. If the Python app is reading a file, the .NET app may not be able to write to it while Python is reading it, without both processes opening the file in a shareable way,... more 12/8/2015 8:09:39 AM
I think what you're missing is this from JLS 17.4.4: An unlock action on monitor m synchronizes-with all subsequent lock actions on m (where "subsequent" is defined according to the synchronization order). Which is very similar to... more 12/8/2015 7:10:38 AM
You can't include the description, but you can link to the property documentation with the <see> tag. For example: <param name="x">The initial value for <see cref="x"/></param> As an aside, I would strongly urge... more 12/8/2015 6:45:30 AM
There are 86,400,000,000 microseconds in a day. That's more than 232, so the result can't be stored in 32 bits. The next best option is 64 bits, i.e. 8 bytes. Compare that with the date type which covers 4713BC to 5874897AD, i.e. 5879611... more 12/7/2015 4:43:26 PM