Browsing 7239 questions and answers with Jon Skeet
The problem is that your constructor takes two doubles and a string: public SimpleCalc(double num1, double num2, string oper) But you're calling it with three strings: SimpleCalc Calc = new SimpleCalc("{0.0}", "{0.0}", "{0}"); Change... more 2/3/2014 12:01:51 PM
As others have said, you need EEE instead of ccc - but you should also specify a locale, so that it doesn't try to parse the month and day names (and other things) using your system default locale: SimpleDateFormat sdf = new... more 2/3/2014 10:23:27 AM
You're specifying a number of milliseconds since the Unix epoch, which was midnight UTC. However, you're implicitly using the system default time zone in your DateTime, and I suspect that at the Unix epoch, your system time zone was... more 2/3/2014 10:18:54 AM
Why would you call doubleValue()? Just avoid doing that. There are two problems with it: A double has no notion of trailing zeroes, unlike BigDecimal Converting between double and BigDecimal (in either direction) is almost always a bad... more 2/3/2014 6:52:44 AM
What did I do wrong? You ignored the fact that the data is Base64-encoded, not UTF-8. To convert the string to bytes to get the original data, you need to reverse that Base64 encoding, for example using this library. byte[]... more 2/2/2014 10:24:25 PM
If a type has no static constructor, field Initializers will execute before the type being used (as I understand : not being instantiated but rather being used) Not necessarily. If there is no static constructor, then static field... more 2/2/2014 6:31:51 PM
Firstly, as noted by JB Nizet, don't do this. Very occasionally I'll use a postfix increment within another expression, for thing likes array[index++] = value; but very often I'll pull it out into two statements for clarity. I wasn't... more 2/2/2014 12:40:41 PM
It sounds like it's probably the name of a stored procedure. That's fine, so long as you then have: command.CommandType = CommandType.StoredProcedure; (I hope that the real code has appropriate using statements as well, of course.) more 2/1/2014 8:37:38 PM
There are a few aspects of mscorlib and the like which wouldn't compile as-written, without some interesting hacks. In particular, there are some cyclic dependencies. This is another case, but I think it's reasonable to consider MaxValue... more 2/1/2014 7:42:27 PM
(This is at least somewhat a guess... I'm not an iOS expert at all.) Well it sounds like the problem is precisely because you're using a time zone which is GMT+1 - or was in January 1970, anyway. Basically I think the UIDatePicker is... more 2/1/2014 6:58:34 PM