Rogue Wave Server Component library for .NET Reference Guide
|
|
MappingIsTraced Property |
Checks if a TextWriter has been set on
Trace property.
Namespace: RW.Server.Component
Assembly: RW.Server.Component (in RW.Server.Component.dll) Version: 7.0.0.0 (7.0.0.0)
When you need to conditionnally add a trace, it is shorter to
write:
than
Mapping.Trace?.WriteLine("Anything");if (Mapping.IsTraced) { Mapping.Trace.WriteLine("Anything"); }