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;
                }

            }

        }
posted on 2005-03-05 19:17  维生素C.NET  阅读(3363)  评论(0)    收藏  举报