When you can't depend on your Parent

by Michael S. Kaplan, published on 2007/01/12 03:01 -05:00, original URI: http://blogs.msdn.com/b/michkap/archive/2007/01/12/1454385.aspx

Boy, that's a fun post title? :-)

The other day, Aldo was curious about why I was so down on the Parent property, and he hazarded a guess that perhaps it was to do with the fact that it defaulted to the InvariantCulture for Windows only cultures....

That isn't it (once again it is one of the full size cultures being returned when only a small subset of properties was needed).

But why Windows only cultures fall back to Invariant is kind of obvious -- because since Windows NLS has no notion of neutral locales, there is no good way to synthesize a neutral out of nothing. o there is nowhere to fall back to.

Of course it may be hasty to consider that useless, since it was all of the neutrals fall back to in the .NET Framework anyway. And of course one can always create a custom culture with a custom fallback if one wants to. :-)

I'll talk more about some of the thinking outside of the box that took place on alternate solutions (the "roads not taken") soon....


This post brought to you by  (U+1016, a.k.a. MYANMAR LETTER PHA)

no comments

referenced by

2007/12/22 CultureInfo subsetting attempts that suck

go to newer or older post, or back to index or month or day