Browsing 7239 questions and answers with Jon Skeet
Is there a way to call the second operate() function? Yes - you can qualify it with Foo.this to refer to the enclosing instance of Foo: operatedNumber = Foo.this.operate(x,y); more 5/12/2014 9:05:02 PM
The browser itself is unlikely to know about that list in general, as they're Windows-specific IDs. You may be able to adapt existing time zone detection Javascript code to use the Windows time zones itself, but it's likely to be some... more 5/12/2014 8:59:33 PM
You haven't shown us enough code to know what's going on, but your output is very easy to explain: you're calling Date.toString() which always formats the instant in time using the system local time zone. The time zone in the Calendar... more 5/12/2014 4:52:46 PM
Shouldn't System.Collections already be referenced by any member of System.Collections.Generic, as it is a child? No. There's no inheritance between namespaces. A using directive only imports types from that namespace - it doesn't... more 5/12/2014 4:15:15 PM
Locales generally don't have enough information to specify the time zone. For example: en just means "English" - is that in the US? The UK? Canada? Australia? Somewhere else? Even with a bit more specification, it doesn't pin it down... more 5/12/2014 3:51:38 PM
The error you're getting is because nothing's calling anything on your mock. Contrary to your naming, mockByte doesn't refer to a mock at all, so using it in an expect call like this is not going to help you. You should be expecting calls... more 5/12/2014 3:44:45 PM
No, returning the same reference doesn't make it clearer - in some cases such a method would be expected to clone the object and return a different version, e.g. string Escape(string input) Indeed, because a void method can't return... more 5/12/2014 2:24:37 PM
Basically you should specify an encoding in the Java code. Currently, your code will produce different outputs on different systems as it uses the platform-default encoding (e.g. Windows-1252 or UTF-8). I would encourage you to use UTF-8... more 5/12/2014 1:19:03 PM
It sounds like you're just trying to find the names of all elements with no child elements, then project from each of those elements to the Name attribute value: var names = doc.Descendants() // Or Descendants("Node") ... more 5/12/2014 9:30:01 AM
Well if you want to get to row i, you need to change your check from && dtNew.Rows.Count > 0 to && dtNew.Rows.Count > i Currently you're only checking whether there are any rows - i.e. whether dtNew.Rows[0] is... more 5/12/2014 9:25:45 AM