Closed hutterm closed 3 years ago
I think you could use
TraceParameterProvider.Default.ForAnything().With<Test>().Trace(test => test == null ? 0 : test.Int).EndWith()
That should prevent the NullRef.
This is fixed in 4.0.0 running against net46/netstandard2.0
Here is a minimal test case - it throws on the last line:
I haven't found a clever way to get around that easily. Can you handle this special case internally?