Author Topic: Adding a custom property - case sensitivity  (Read 2135 times)

0 Members and 1 Guest are viewing this topic.

Kurtz David

  • Guest
Adding a custom property - case sensitivity
« on: February 01, 2012, 05:24:43 AM »
Hello,
When adding a custom property to my design the name of the property is converted (without a request of my  :-)) to lower cases.
What am I doing wrong?
How can I fix it?

Thanks in advance,
David.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Adding a custom property - case sensitivity
« Reply #1 on: February 01, 2012, 06:40:34 AM »
We may need to see code David

Welcome to theSwamp  :-)


Added:
and which application are you targetting ?
« Last Edit: February 01, 2012, 07:06:56 AM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kurtz David

  • Guest
Re: Adding a custom property - case sensitivity
« Reply #2 on: February 01, 2012, 07:21:37 AM »
Hello,
The code I'm using is a modification of a code I found here at the swamp added by fixo.
http://www.theswamp.org/index.php?topic=20812.0

thank,
David.

kaefer

  • Guest
Re: Adding a custom property - case sensitivity
« Reply #3 on: February 01, 2012, 08:45:59 AM »
The code I'm using is a modification of a code I found here at the swamp added by fixo.
http://www.theswamp.org/index.php?topic=20812.0

Without any actual coding: CustomProperties is marked obsolete ("Use CustomPropertyTable instead"). Reason: it uses a StringDictionary under the hood, instead of a generic Dictionary. The Add method of System.Collections.Specialized.StringDictionary has an explicit key.ToLower() in its implementation.

HTH

Kurtz David

  • Guest
Re: Adding a custom property - case sensitivity
« Reply #4 on: February 01, 2012, 08:51:27 AM »
Unbelievable … it was that easy …
TNX
 :ugly: