System.Diagnostics.Debug.WriteLineIf C# (CSharp) Method

WriteLineIf() private method

private WriteLineIf ( bool condition, object value ) : void
condition bool
value object
return 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

Esempio n. 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