Browsing 7239 questions and answers with Jon Skeet
You're not closing your streams - which are explicitly buffered. So everything is in memory, and you never gets flushed to disk. Use a try-with-resources statement to close everything appropriately, even if an exception is thrown.: try... more 4/24/2015 4:28:03 PM
Yes, I believe you're right - and the one bit of documentation I've found to support this is in JLS 9.6: Unless explicitly modified herein, all of the rules that apply to normal interface declarations apply to annotation type... more 4/24/2015 2:38:59 PM
Contrary to the other answer, I don't think you need to modify your GetMemory method, which looks like it's calling void methods (e.g. here). It looks like GetMemory writes into the buffer you provide, so you may just need: // Name... more 4/24/2015 2:10:35 PM
The problem is your third argument - the fourth parameter for in the method declaration. That's declared as: // Note: type parameter names as per Aggregate declaration Func<TAccumulate, TAccumulate, TAccumulate>... more 4/24/2015 1:16:17 PM
am asking you if is there any possibility to get the real DateTime even if i changes time on my computer using C# ? (I assume that the user does not have an internet connection) No. The system clock is the local source of time... more 4/24/2015 11:19:02 AM
If you want to project items from one type to another, that's what Select is for - then there's the ToList method: // Names changed to conform to .NET conventions var localOrderList = serviceOrders.Select(serviceOrder => new Order {... more 4/24/2015 10:43:01 AM
I strongly suspect this is indeed a culture issue - your thread's current culture probably uses . as a grouping separator rather than a decimal separator. In fact, in some cultures your code would just fail with an exception. Here's an... more 4/24/2015 10:34:14 AM
You're trying to write a function which accepts a float input, and returns a float output. That's a Func<float, float>. (To give a clearer example, if you wanted a delegate with an int parameter and a return type of float, that would... more 4/23/2015 9:27:30 PM
And I know the solution here should be using covariance on T in IModelConverter No, not really. That would only be the case if any specific IModelConverter could be regarded as a more general IModelConverter - and that's not the case.... more 4/23/2015 9:04:27 PM
You're missing a '0' at the start, because you're padding left to 40 characters (presumably having copied that code from something where the hash is expected to be 40 characters) instead of the 64 characters that actually makes up a... more 4/23/2015 6:28:13 PM