Take the 2-minute tour ×

For all the examples I have seen of people creating a TraceSource for a class, it is always defined as static

private static TraceSource traceSource = new TraceSource("TraceSourceApp");

Why do this over

private readonly TraceSource _traceSource = new TraceSource("TraceSourceApp");

What's the advantages/disadvantages?

share|improve this question
add comment


Your Answer



Browse other questions tagged or ask your own question.