15 references to _cultureCache
System.Web (15)
httpserverutility.cs (15)
166
if (!
_cultureCache
.Contains(name)) {
168
lock (
_cultureCache
) {
169
if (
_cultureCache
[name] == null) {
170
_cultureCache
[name] = CultureInfo.ReadOnly(new CultureInfo(name));
174
return (CultureInfo)
_cultureCache
[name];
183
if (!
_cultureCache
.Contains(ci.Name)) {
185
lock (
_cultureCache
) {
186
if (
_cultureCache
[ci.Name] == null) {
187
_cultureCache
[ci.Name] = CultureInfo.ReadOnly(ci);
191
return (CultureInfo)
_cultureCache
[ci.Name];
196
if (!
_cultureCache
.Contains(culture)) {
198
lock (
_cultureCache
) {
199
if (
_cultureCache
[culture] == null) {
200
_cultureCache
[culture] = CultureInfo.ReadOnly(new CultureInfo(culture));
204
return (CultureInfo)
_cultureCache
[culture];