I set up a TraceListener using this XML:
<add name="RuntimeDeploymentConsoleListener"
type="System.Diagnostics.ConsoleTraceListener"
initializeData="C:\Users\Administrator\Desktop\TraceSourceLogs.log">
</add>
I then realised that the initializeData
attribute is the string passed to the constructor for the specified class.
However the constructor for ConsoleTraceListener
takes a Boolean
. So why does this not throw an Exception at runtime when it tries to convert that string to a Boolean?