[Mono-dev] explicit conversion to bool and bool? on XElement

David Mitchell dmitchell at logos.com
Wed Jul 14 16:53:38 EDT 2010

Currently (or at least as of revision 147679), the explicit conversion to bool for XElement calls System.Xml.XmlConvert.ToBoolean(), which is case sensitive. However, Microsoft's implementation of the explicit conversion is case insensitive.

Attached is a patch that corrects this issue by converting the convent of the XElement to lower case before sending it to XmlConvert.ToBoolean().

I would very much appreciate it if someone would review/apply this patch (or fix the issue in some other way).

-- Dave

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: XElement.patch.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100714/ef5d7f3e/attachment.txt 

More information about the Mono-devel-list mailing list