Switch GetPropertyName to take the type of the owner class.