Export (0) Print
Expand All

2.4.5 Character Literals

Visual Studio .NET 2003

A character literal represents a single Unicode character of the Char type. Two double-quote characters is an escape sequence representing the double-quote character.

Imports System

Module Test
    Sub Main()
        ' This prints out: a.
        Console.WriteLine("a"c)

        ' This prints out: ".
        Console.WriteLine(""""c)
    End Sub
End Module
CharacterLiteral ::=
   DoubleQuoteCharacter StringCharacter DoubleQuoteCharacter C

See Also

2.4.1 Boolean Literals | 2.4.2 Integer Literals | 2.4.3 Floating-Point Literals | 2.4.4 String Literals | 2.4.6 Date Literals | 2.4.7 Nothing | 2.4 Literals | Character Data Types (Visual Basic Language Concepts)

Show:
© 2014 Microsoft