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)

public:
String(
	wchar_t c, 
	int count
)

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: