TryGetProperty method

bool TryGetProperty(
  1. PropertyDefinition propertyDefinition,
  2. OutParam<Object> propertyValueOutParam
)
Tries to get a property value based on a property definition. The property definition. The property value.

Implementation

bool TryGetProperty(
  PropertyDefinition propertyDefinition,
  OutParam<Object> propertyValueOutParam,
) {
  OutParam<ServiceLocalException> serviceExceptionOutParam =
      OutParam<ServiceLocalException>();
  propertyValueOutParam.param = GetPropertyValueOrException(
    propertyDefinition,
    serviceExceptionOutParam,
  );
  return serviceExceptionOutParam.param == null;
}