TryGetValue method

bool TryGetValue(
  1. PropertyDefinition propertyDefinition,
  2. OutParam<Object> propertyValueOutParam
)
Tries to retrieve the value of the specified property. The property for which to retrieve a value. If the method succeeds, contains the value of the property.

Implementation

bool TryGetValue(PropertyDefinition propertyDefinition,
    OutParam<Object> propertyValueOutParam) {
  if (this._properties.containsKey(propertyDefinition)) {
    Object? param = _properties[propertyDefinition];
    propertyValueOutParam.param = param;
    return true;
  } else {
    propertyValueOutParam.param = null;
    return false;
  }
}