Using Object.ToString() is not reliable enough as this caused runtime
issues when called from across assembly boundaries. For example, this
function returned "confluent.kafka.config+producer+compression" when
passed Confluent.Kafka.Config.Producer.Compression.None. Using
reflection should yield more predictable results.
Using
Object.ToString()
is not reliable enough as this caused runtime issues when called from across assembly boundaries. For example, this function returned "confluent.kafka.config+producer+compression" when passedConfluent.Kafka.Config.Producer.Compression.None
. Using reflection should yield more predictable results.