Case sensitive attribute names

Mar 28, 2012 at 12:43 PM
Edited Mar 28, 2012 at 12:44 PM

Hello,

I've stared to use these utilities and, I think, better to ignore case sensitive attribute names when you creating the attributes in the CreateMemberFromAttributes procedure. I've modified your code like this

 

var atts = GetAttributeList().ToDictionary(a => a.Identifier.Name, StringComparer.CurrentCultureIgnoreCase);

foreach (var v in values)
        {           
            if (!atts.ContainsKey(v.Key))
            {
                continue;
            }

var type = atts[v.Key].DataType;

The case name's sensitivity doesn't important for MDS but may fire an error in application.

 

Just my opinion.

Regards,

Dmitry