Browsing 7239 questions and answers with Jon Skeet
DirectoryInfo.GetFiles already returns a FileInfo[] - so you don't need to convert each entry into a FileInfo using the constructor, as you're trying to do now. You can just use: ficheroo = dirInfoo.GetFiles(filtro,... more 6/17/2014 8:17:57 AM
Currently, you're getting the properties of the properties - and then trying to cast each of the values to JObject, and then taking the Description of that. That's one level too deep, as you have: The root object Each property of the... more 6/17/2014 6:06:47 AM
Currently you're starting the operation - but it's never completing. Your program is terminating before you do anything with the task. As this is a console app, continuations will run on a thread-pool thread anyway, so you can change your... more 6/16/2014 6:18:27 PM
I strongly suspect that for whatever reason, you're ending up with a namespace called QServices declared in the TaskWorkflow.SI namespace. So actually you want: using TaskWorkflow.SI.QServices; .... Record[] querysResult = new... more 6/16/2014 1:02:53 PM
You've just picked a culture which happens to use . as a decimal point: var culture = new CultureInfo("ko-KR"); Console.WriteLine(culture.NumberFormat.NumberDecimalSeparator); // Prints . I typically use French (fr-FR) for this - and... more 6/16/2014 12:35:31 PM
The problem is that you're writing the UTF-8 BOM first, because Encoding.UTF8 does that by default. Short but complete example: using System; using System.IO; using System.Text; class Test { static void Main() { string... more 6/16/2014 12:13:11 PM
Yes, there's no getBinaryStream method on Clob, because it doesn't make sense for there to be one. A clob is character data, not binary data. It makes no more sense to ask a clob for a binary stream than it does to ask a blob for a... more 6/16/2014 10:26:26 AM
You could use my Noda Time library, using CalendarSystem.GetIslamicCalendar to get the relevant calendar. Now, that may well have limitations in terms of: The rest of your application would ideally want to use Noda Time throughout, to... more 6/16/2014 8:57:43 AM
Currently even just your getters will give a stack overflow - you don't have any fields backing your data, because you're not using automatically-implemented properties. Additionally, your properties don't have conventional names, which is... more 6/16/2014 6:28:39 AM
I'd start off by removing your current code to retrieve a sequence of customers, and instead just use LINQ to XML: var customers = XDocument.Load(uri) .Root.Elements("customer") .Select(x... more 6/16/2014 6:24:52 AM