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

Write() private method

private Write ( string message ) : void
message string
return void
        public static void Write(string message)
        {
            lock (s_lock)
            {
                if (message == null)
                {
                    WriteCore(string.Empty);
                    return;
                }
                if (s_needIndent)
                {
                    message = GetIndentString() + message;
                    s_needIndent = false;
                }
                WriteCore(message);
                if (message.EndsWith(Environment.NewLine))
                {
                    s_needIndent = true;
                }
            }
        }

Same methods

Debug::Write ( object value ) : void
Debug::Write ( object value, string category ) : void
Debug::Write ( string message, string category ) : void

Usage Example

Esempio n. 1
0
    void OnApplicationQuit()
    {
        TxtState.text = ("[Base De Donnée] :  Fermeture de la connexion");

        Debug.Write("Fermeture Connection Base de Données");

        if (con != null && con.State.ToString() != "Closed")
        {
            con.Close();
        }
    }
All Usage Examples Of System.Diagnostics.Debug::Write