System.Console.WriteLine C# (CSharp) Méthode

WriteLine() public static méthode

public static WriteLine ( ) : void
Résultat void
        public static void WriteLine() { }
        public static void WriteLine(bool value) { }

Same methods

Console::WriteLine ( bool value ) : void
Console::WriteLine ( char value ) : void
Console::WriteLine ( char buffer, int index, int count ) : void
Console::WriteLine ( decimal value ) : void
Console::WriteLine ( double value ) : void
Console::WriteLine ( float value ) : void
Console::WriteLine ( int value ) : void
Console::WriteLine ( long value ) : void
Console::WriteLine ( object value ) : void
Console::WriteLine ( string value ) : void
Console::WriteLine ( string format, object arg0 ) : void
Console::WriteLine ( string format, object arg0, object arg1 ) : void
Console::WriteLine ( string format, object arg0, object arg1, object arg2 ) : void
Console::WriteLine ( uint value ) : void
Console::WriteLine ( ulong value ) : void

Usage Example

    public static void Main(string[] args)
    {
        switch (1)
        {
        default:
            switch (2)
            {
            default:
                int flag = 1;       //makes the next if computable -- essential!
                if (flag == 1)
                {
                    C.WriteLine("**** This one is expected");
                    break;  //break-2
                }
                else
                {
                    goto lbl;
                }
            }
            break;  //break-1  This point is REACHABLE through break-2,
            // contrary to the warning from compiler!

lbl:
            C.WriteLine("**** THIS SHOULD NOT APPEAR, since break-1 was supposed to fire ***");
            break;
        }
    }
All Usage Examples Of System.Console::WriteLine