CreatePropertyInstance method

  1. @override
ComplexProperty CreatePropertyInstance(
  1. ServiceObject? owner
)
override
Creates the property instance. The owner.

Implementation

@override
ComplexProperty CreatePropertyInstance(ServiceObject? owner) {
  TComplexProperty complexProperty = this.propertyCreationDelegate();

  if (complexProperty is IOwnedProperty) {
    IOwnedProperty ownedProperty = complexProperty as IOwnedProperty;
    ownedProperty.Owner = owner;
  }

  return complexProperty;
}