operator [] method

Object? operator [](
  1. TKey key
)
Gets or sets the Key.

Implementation

Object? operator [](TKey key) {
  OutParam<Object> valueOutParam = OutParam();

  if (TryGetValue(key, valueOutParam)) {
    return valueOutParam.param;
  } else {
    return null;
  }
}