serilog/serilog — pull request #269 by jjschlesinger (2014-11-04 00:45:01+00:00)
Title: Included public/non-static fields when destructuring

When working with DTOs, I tend to favor public fields over public properties with getters/setters. Serializers will happily work with public fields as well as properties, so I felt it would make sense to do the same when destructuring.

I've added an additional foreach that looks for public/non-static fields on the object being destructured.