Arjen,
I thought we discussed it and decided that case sensivity is ok for attribute values just not for attribute names. In addition we are using some built in .net framework enums whose case we cannot control.



Ian


Hi,

About a week ago, I sumbitted a patch which allowed case-insensitive
lookup of enum values in task attributes. I didn't get any feedback, so
I don't know whether it has been commited or rejected. Can someone shed
some light over this?

The patch & original message are attached.

Best,

Arjen



-----Original Message-----
From: Arjen Poutsma Sent: Tuesday, August 26, 2003 10:15 AM
To: '[EMAIL PROTECTED]'
Subject: Patch: Case insensitive enum value lookups



Hi,


The attached patch for Element.cs allows case-insensitive lookup of enumeration values in the build file.

A number of tasks use an enum to specify a closed set of task parameters. For instance, the foreach task uses the LoopItem enum to specify the type of iteration that should be done. Without the patch, these parameters had to be specified with the exact casing used in the enumeration. The attached patch fixes this, and allows one to specify these parameters with any casing. I would prefer to allow only lower case, just like any other task attribute, but there is no simple way to do that without actually changing the enum definitions.

Cheers,

Arjen






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to