Windows apps
Collapse the table of content
Expand the table of content

String Constructor (Char, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

new : 
        c:char * 
        count:int -> String

Parameters

c
Type: System..::..Char
A Unicode character.
count
Type: System..::..Int32
The number of times c occurs.

If count is zero, an Empty instance is initialized.

Show:
© 2017 Microsoft