Browsing 7239 questions and answers with Jon Skeet
Here's the code I compiled, which made it slightly easier to look at the differences: using System; using System.Collections.Generic; class Test { static void Main() {} // Just to make it simpler to compile public static void... more 1/8/2016 3:28:33 PM
In 2nd image it display the suggestion and I can use that method, but I don't want that suggestion and I don't want use that method with Circle class object. Then you shouldn't make Circle derive from Oval, basically. Don't forget... more 1/8/2016 11:39:50 AM
The simplest approach is to quote the text with single quotes... but to do that as simply as possible, you should use double quotes for the overall value: dateFormat: "d 'de' MM 'de' yy" more 1/8/2016 10:06:53 AM
It sounds like this is really just a case of wanting to fetch all the URLs (from all the source documents) before you call GenerateXml at all - and remember where each one came from. That's as simple as: var sources = new... more 1/8/2016 7:22:49 AM
Let's start by getting rid of the exception "handling". The node not being found is a "reasonable to expect" error, and one we're going to ensure doesn't result in an exception. Other exceptions - such as the file not being found at all,... more 1/7/2016 5:21:23 PM
I suspect that the calendar is trying to use the current day-of-week (it's Thursday today) in the first week of 2016. Now, looking at your calendar settings, you've got firstDayOfWeek=1 (so weeks run Sunday to Saturday) and... more 1/7/2016 10:38:10 AM
Just convert to a normal GregorianCalendar, do the arithmetic there, then convert back: GregorianCalendar calendar = xmlCalendar.toGregorianCalendar(); calendar.add(Calendar.DAY_OF_MONTH, -1); xmlCalendar =... more 1/7/2016 8:16:23 AM
I'd use: Expression<Func<Result, Foo>> conversion = result => { ... }; First case: var result = queryable.Select(conversion); Second case: var result = queryable.Select(entity => entity.Result) ... more 1/7/2016 7:56:52 AM
As noted in comments, your VB example wouldn't work either, but it's pretty simple to do in both languages. You need to distinguish between names and values, and exactly how your filtering works: var example = root.Elements("BasicFee") ... more 1/7/2016 6:43:41 AM
You could fairly easily build a new URI: URI partial = new URI( null, // scheme null, // user info uri.getHost(), uri.getPort(), uri.getPath(), null, // query null); // fragment String text =... more 1/6/2016 5:44:29 PM