Share via


String Constructor (Char, Int32)

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

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

Syntax

[MethodImplAttribute]
public String (
         charc,
         intcount
)

Parameters

  • c
    The specified Unicode character.
  • count
    The number of times you want the specified character to be repeated.

Remarks

If the value of the count parameter is 0 (zero), an empty instance of the String class is initialized.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

String Class
String Members
System Namespace