System.Diagnostics.Trace.WriteLine C# (CSharp) Method

WriteLine() private method

private WriteLine ( object value ) : void
value object
return void
        public static void WriteLine(object value) { }
        [System.Diagnostics.ConditionalAttribute("TRACE")]

Same methods

Trace::WriteLine ( object value, string category ) : void
Trace::WriteLine ( string message ) : void
Trace::WriteLine ( string message, string category ) : void

Usage Example

Beispiel #1
0
        public static void Call(MethodBase mb, params object[] args)
        {
            if (mb == null)
            {
                throw new ArgumentNullException("mb");
            }

            StringBuilder line = new StringBuilder();

            line.Append("[");
            line.Append(System.IO.Path.GetFileName(mb.DeclaringType.Assembly.Location));
            line.Append("] ");
            line.Append(mb.DeclaringType.Name);
            line.Append(".");
            line.Append(mb.Name);
            line.Append("(");
            line.Append(_Parameterize(mb, args));
            line.Append(")");

#if LOG4NET
            _Logger.Debug(line.ToString());
#else
            SysTrace.WriteLine(line.ToString());
#endif
        }
All Usage Examples Of System.Diagnostics.Trace::WriteLine