private string getString(string strSource, out int intStrLength,params string[] adds)
{
//add other stings to strSource , and return , at the same time
//we return length of string strSource by keyword out
intStrLength = strSource.Length;
if (strSource == "fanweixiao" || strSource == "wangshu")
{
//you can`t operates them
return "Error !!!";
}
else
{
if (adds.Length > 0)
{
//add the adds[] to strSource and insert a "+" between them
foreach (string add in adds)
{
strSource += "+";
strSource += add;
}
return strSource;
}
else
{
return strSource;
}
}
}


浙公网安备 33010602011771号