Browsing 7239 questions and answers with Jon Skeet
I'd like to call the original (not overriden) method. You can't do that from outside the subclass. From the subclass itself, you can call super.my_method(); which will always call the superclass implementation, even if it's been... more 10/30/2014 2:28:41 PM
To my eyes, the async way looks cleaner, but there is that 'while (true)' loop that my uneducated brain tells me is going to use an extra thread, more resources, and therefore won't scale as well as the other one. Nope, it won't. The... more 10/30/2014 11:59:19 AM
Firstly, I suspect you actually mean you can call it as: _repositoryObject.Where(GetPublic()) It's important that you call the method to get the expression tree. Your query expression is being converted into: var results =... more 10/30/2014 11:54:30 AM
The whole point of hashing is that it's one way - that you can't retrieve the original password from the hash. A "forgot your password" feature shouldn't email the existing password to the user... it should generate a temporary... more 10/30/2014 7:24:18 AM
You're creating two different instances of Values - one inside Main, which keeps its value of 0 for getSetNum, and one inside Calc, which is given a value of 6 for getSetNum. They're entirely separate instances. You could fix this by... more 10/30/2014 7:09:36 AM
Why does the head nodes of the lists does not get updated properly? Because you're just changing the values of local variables. That's all you're doing - you're not making any changes to the list objects at all. Changes to local... more 10/30/2014 6:56:12 AM
Based on this blog post, it looks like what you're expecting (automatic filtering) isn't the case - instead, you need to hook into the TextChanged event and populate the Suggestions collection yourself. From the documentation: The app... more 10/29/2014 5:50:01 PM
You shouldn't think about the database as storing the values in a particular string format at all - any more than it stores numbers as decimal or hex. Instead, you should just view it as a date/time, e.g. // TODO: Do you really want the... more 10/28/2014 1:25:46 PM
The ReadBuffer is indeed modified right after its enqueued, but I thought enqueuing is by value and not reference? The reference is enqueued by value. Arrays are always reference types. All that ends up in the queue is a reference to... more 10/27/2014 5:52:22 PM
This is the problem: public class Command : identifiableobject { LookCommand l = new LookCommand(); ... That means that in order to construct a Command, you need to construct a new LookCommand. But a LookCommand is a Command,... more 10/25/2014 5:29:28 AM