Use introspection instead of reflection to get property type (#10672).

Change-Id: I4eebad640c3c091bfff335bae8ef455e662ad4cb