System.Diagnostics.TraceInternal.WriteIf C# (CSharp) Méthode

WriteIf() public static méthode

public static WriteIf ( bool condition, object value ) : void
condition bool
value object
Résultat 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

Exemple #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