TryGetValue method

bool TryGetValue(
  1. TKey key,
  2. OutParam<Object> valueOutParam
)
Tries to get value. The key. The value.

Implementation

bool TryGetValue(TKey key, OutParam<Object> valueOutParam) {
  if (this._items.containsKey(key)) {
    valueOutParam.param = this._items[key];
    return true;
  } else {
    valueOutParam.param = null;
    return false;
  }
}