Implements forEachPublicProperty