aspxtreme

String Constructor ( Char, Int32 )

System Namespace   String Class


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

[ VB ]
<Serializable>
Public Sub New ( _
   ByVal c As Char, _
   ByVal count As Integer _
)

[ C# ]
[ Serializable ]
public String (
   char c,
   int count
);

[ C++ ]
[ Serializable ]
public: String (
   __wchar_t c,
   int count
);

[ JScript ]
public Serializable
function String (
   c : Char,
   count : int
);

Parameters

c
A Unicode character.
count
The number of times c occurs.

Exceptions


Exception Type Condition
ArgumentOutOfRangeException count is less than zero.

Remarks

If count is zero, an Empty instance is initialized.

See Also

String Members   String Constructor Overload List   Char   Int32



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme