CodePlexProject Hosting for Open Source Software
An unexpected error has occured.
There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Closed
Flori27 wrote Dec 5, 2010 at 3:17 PM
andrew3010 wrote Dec 5, 2010 at 9:08 PM
the_roggy wrote Jan 1, 2011 at 11:44 PM
[XmlIgnore] public decimal? Score{ get; set; } [XmlElement("score")] public string ScoreAsString { get { return (Score.HasValue) ? Score.ToString() : null; } set { Score = !string.IsNullOrEmpty(value) ? decimal.Parse(value) : default(decimal?); } } [XmlIgnore] public decimal? Popularity { get; set; } [XmlElement("popularity")] public string PopularityAsString { get { return (Popularity.HasValue) ? Popularity.ToString() : null; } set { Popularity = !string.IsNullOrEmpty(value) ? decimal.Parse(value) : default(decimal?); } } [XmlIgnore] public bool? Translated { get; set; } [XmlElement("translated")] public string TranslatedAsString { get { return (Translated.HasValue) ? Translated.ToString() : null; } set { Translated = !string.IsNullOrEmpty(value) ? bool.Parse(value) : default(bool?); } }
MrWeiland wrote Feb 2, 2011 at 6:53 AM
xardas wrote Feb 15, 2011 at 7:15 AM
ksaleem wrote May 9, 2011 at 8:38 PM
Mang wrote Jun 7, 2012 at 5:59 PM
darick_c wrote Jul 30, 2012 at 11:09 PM
Sign in to add a comment
Keyboard shortcuts are available for this page.