Browsing 7239 questions and answers with Jon Skeet
It's unclear exactly what's going on as there's version confusion, but I suspect you just want: var setting = @"worker_processes {0}; worker_rlimit_nofile {1}; error_log logs/{2} {3}; events {{ ... more 9/4/2015 4:08:40 PM
You're using HtmlEncode, but the value should be URL-encoded, as it will be uploaded as application/www-form-urlencoded content. Try using HttpUtility.UrlEncode instead. more 9/4/2015 2:37:39 PM
That's performed in the database - if you add appropriate logging, you should see the appropriate SQL to get the right result. In C# 6 you can just use Ref = a.CustomerProfile?.Ref more 9/4/2015 12:15:38 PM
I think you probably want to use the XmlElementAttribute.IsNullable property: public class items { [JsonProperty(PropertyName = "frequency")] [XmlElement(ElementName = "frequency", IsNullable = true)] public string Frequency... more 9/4/2015 11:46:39 AM
There's no need to go via a string at all. Just use the explicit conversions: [Column("AuthorisationStatus")] public byte AuthorisationStatusByte { get { return (byte) AuthorisationStatus; } set { AuthorisationStatus = (TriState)... more 9/4/2015 10:11:12 AM
No, that isn't supported as far as I'm aware. I would suggest just defining a third symbol in that case. (I'd also try to do all of this really, really sparingly...) more 9/4/2015 9:22:07 AM
There's no such thing as "all possible date formats". A format of "'Year:' yyyy 'Month:' MM 'Day:' dd" would be valid, but highly unusual, for example. There's nothing that Noda Time supplies here that would be particularly helpful. I... more 9/4/2015 6:03:33 AM
You're trying to call the method on the Field - whereas you actually want to call it on the value of the field within your object. You want: Method method = field.getType().getMethod("setText", String.class); Object target =... more 9/4/2015 5:54:16 AM
You're concatenating the values in the array and assigning the result to name before you modify any of the values within the array... i.e. when every element of the array is null. Just move this line: String name = n[0] + n[1] + n[2] +... more 9/3/2015 9:58:10 PM
You're not disposing of your responses, so you're never returning the connections to the connection pool - if you're fetching multiple images from the same host, the connection pool is preventing you from opening more connections to that... more 9/3/2015 9:18:43 PM