Browsing 7239 questions and answers with Jon Skeet
The simplest approach would just to be to chain another call to Where: Product GetProduct(Func<Product, bool> func) { return CompareView.Select() .Where(p => p.IsLive) .Where(func) ... more 3/20/2015 10:26:18 AM
That's naming a variable - not an object. Objects don't have names, as such. (You can have a field called name of course, but it's not a general thing.) Variable names are usually only relevant at compile time - so it doesn't really make... more 3/20/2015 8:23:31 AM
If you want to store 32 bits at a time, the obvious solution in my view would be to parse with Long.parseLong instead: isumI = (float)(Long.parseLong(ssumI, 16) / Math.pow(2, bits)); (Do you definitely want to hold these values as float... more 3/20/2015 8:18:59 AM
Basically your understanding of endianness is wrong - your example is in little-endian format already, so you should only reverse it if BitConverter expects a big-endian format. You just need to invert your condition: if... more 3/20/2015 8:16:41 AM
No, the point of the Omnisharp server is not to be a general purpose web server - it's to act as a service. Think of it as an "IDE service" that just happens to exposed itself over HTTP, as that's the easiest way for many clients to talk... more 3/19/2015 10:21:57 PM
You're setting the time zone of the calendar you're using, but that's not what you pass into the SimpleDateFormat - you're just using the default system time zone when you format... more 3/19/2015 10:11:48 PM
It's part of the query - it's within a Where clause. So no, it won't be executed immediately. Having said that, you appear to be closing the context that the query uses, so I suspect that by the time it is used, it'll be broken... more 3/19/2015 4:47:50 PM
Ideally, you'd use a parser that allowed you to parse date/time values without trying to apply a time zone at all - both java.time.* and Joda Time allow for this, IIRC, and both are much cleaner than java.util.*. However, if you have to... more 3/19/2015 4:46:23 PM
You appear to be under the impression that a DateTime has a format. It doesn't - no more than an int is neither decimal, nor hex, nor binary - but could be converted to any of those textual representations. It sounds like you should just... more 3/19/2015 2:23:28 PM
It sounds like you know how to get to the relevant syntax nodes (SimpleLambdaExpressionSyntax and ParenthesizedLambdaExpressionSyntax) and just need to know how long they are. I think you just want something like this: var lineSpan =... more 3/19/2015 2:15:17 PM