vb System.String.TrimEnd类(方法)实例源码

下面列出了vb System.String.TrimEnd 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:Syste   
Module TrimEnd
   Public Sub Main()
      Dim sentence As String = "The dog had a bone, a ball, and other toys."
      Dim charsToTrim() As Char = {","c, "."c, " "c}
      Dim words() As String = sentence.Split()
      For Each word As String In words
         Console.WriteLine(word.TrimEnd(charsToTrim))
      Next
   End Sub
End Module


问题


面经


文章

微信
公众号

扫码关注公众号