string ssDescription ='c# programming is really fun. When...';
if (sDescription.Contains("\n") == true)
{
{
char[] splitCharsNewLine = { '\n' };
string[] arrReturnValues = sDescription.Split(splitCharsNewLine);
sDescription = arrReturnValues[0] + "...";
}
No comments:
Post a Comment