Browsing 7239 questions and answers with Jon Skeet
You're currently formatting with 'YYYYIW' which is the 4 digit year, followed by the ISO week-of-year. I suspect you want the ISO week-year, followed by the ISO week-of-year. The Oracle documentation is very unclear on this, but you... more 7/5/2016 2:49:45 PM
I couldnt get it how and why its being used Because you've not closed the stream that's writing to it: using (var fs = new FileStream(Path.Combine(uploadPath, name), ...) I would suggest you write the file, close the using... more 7/5/2016 11:47:45 AM
You can only chain to one constructor. Typically the best approach is for the "less specific" constructors (the ones with fewer parameters) to chain to the "more specific" ones, with a single "master" constructor which is the only one with... more 7/5/2016 11:02:14 AM
If you look at the overloads of FromEvent, you'll see there aren't any that match your current call. You might want to try using this instead: var eventAsObservable = Observable.FromEvent<OnSizeEventHandler>( (Action... more 7/5/2016 10:31:07 AM
Firstly, that value is a LocalDateTime, not a LocalDate. If you want to get a date out in the end, I'd convert it to a LocalDateTime first, then take the date part of that. When performing date formatting and parsing, always read the... more 7/5/2016 5:46:49 AM
What should we be using for BCL time zone lookups in the .NET Core port of NodaTime? Unfortunately, there isn't good TimeZoneInfo support in the PCL profile that Noda Time 1.x supports - even FindSystemTimeZoneById() and the Id... more 7/4/2016 7:09:12 PM
You just reformat it, basically: double[,,] points = { { // One top-level element {-1, 0, 3}, // 8 "middle-level" elements, each of which has 3 elements {-1, -1, -1}, {4, 1, 1 }, {2, 0.5, 9}, ... more 7/4/2016 11:17:44 AM
I suspect this is the problem: string fileContent = File.ReadAllText(FilePath); string[] integerStrings = fileContent.Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries); A line break on Windows is "\r\n" - so each line in... more 7/4/2016 7:29:14 AM
It looks to me like your Data property should be Dictionary<string, GpsDataWrapper> where GpsDataWrapper is just a class with a GpsData property: public class GpsData { public double longitude { get; set; } public double... more 7/4/2016 6:38:50 AM
BenchmarkDotNet is most appropriate for microbenchmarking of CPU-bound code. There are so many factors that can affect IO-bound code that I don't view microbenchmarking as a great approach. Instead, I would suggest if possible that you... more 7/3/2016 8:13:22 PM