operator [] method

Object? operator [](
  1. PropertyDefinition propertyDefinition
)
Gets or sets the value of a property. The property to get or set.

Implementation

Object? operator [](PropertyDefinition propertyDefinition) {
  OutParam<ServiceLocalException> serviceExceptionOut =
      new OutParam<ServiceLocalException>();
  Object? propertyValue = this
      .GetPropertyValueOrException(propertyDefinition, serviceExceptionOut);
  if (serviceExceptionOut.param == null) {
    return propertyValue;
  } else {
    throw serviceExceptionOut.param!;
  }
}