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

WriteIf() private method

private 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

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

Usage Example

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