static private InitHash ( object>.IDictionary | ||
h | object>.IDictionary | |
key | object | |
initialValue | object | |
return | object |
internal static object InitHash(IDictionary<object, object> h, object key, object initialValue)
{
lock (h)
{
object current = h.Get(key);
if (current == null)
{
h.Put(key, initialValue);
}
else
{
initialValue = current;
}
}
return initialValue;
}