System.Diagnostics.Debug.WriteLineIf C# (CSharp) Méthode

WriteLineIf() private méthode

private WriteLineIf ( bool condition, object value ) : void
condition bool
value object
Résultat void
        public static void WriteLineIf(bool condition, object value)
        {
            if (condition)
            {
                WriteLine(value);
            }
        }

Same methods

Debug::WriteLineIf ( bool condition, object value, string category ) : void
Debug::WriteLineIf ( bool condition, string message ) : void
Debug::WriteLineIf ( bool condition, string message, string category ) : void

Usage Example

Exemple #1
0
 public static void WriteLineIf(bool condition, string message, string category)
 {
     DBG.WriteLineIf(condition, message, category);
 }
All Usage Examples Of System.Diagnostics.Debug::WriteLineIf