System.Diagnostics.TraceInternal.WriteIf C# (CSharp) Method

WriteIf() public static method

public static WriteIf ( bool condition, object value ) : void
condition bool
value object
return void
        public static void WriteIf(bool condition, object value)
        {
            if (condition)
                Write(value);
        }

Same methods

TraceInternal::WriteIf ( bool condition, object value, string category ) : void
TraceInternal::WriteIf ( bool condition, string message ) : void
TraceInternal::WriteIf ( bool condition, string message, string category ) : void

Usage Example

Esempio n. 1
0
 public static void WriteIf(bool condition, object value, string category)
 {
     TraceInternal.WriteIf(condition, value, category);
 }
All Usage Examples Of System.Diagnostics.TraceInternal::WriteIf