Replace value in string c# not working

前端 未结 5 2044
梦如初夏
梦如初夏 2020-12-04 03:37
            
                
                   


        
5条回答
  •  余生分开走
    2020-12-04 04:14

    Replace is a function actually, and does return the results. You have to do it this way :

    var Result = _viewPath.Replace("tbody", "table");
    

    where Results contains the result of the transformation.

提交回复
热议问题