ã³ã¼ããæ¸ãã¦ãã¨ãã¦ã¼ãã£ãªãã£ã¯ã©ã¹ã£ã¦ã®ãä½ãäºãããããããââUtilityãã¨ãã®ã¯ã©ã¹åã«ãã¦ãstatic(VBã§ã¯Shared)ãªã¡ã½ãã(éçã¡ã½ãã)ãæããããVBã§ã¯Moduleã¨ããã®ãããã ã¦ã¼ãã£ãªãã£ã¯ã©ã¹ã®ä¾ ä¾ãã°ãæå®ããæååãæå®ããåæ°ã ãç¹°ãè¿ãã¦åå¾ããæ©è½ã欲ããã¨ãããããããã¨ãããã¾ã¾ã§ã¯ãStringUtilityãã¯ã©ã¹ãä½ã£ã¦ããã«éçã¡ã½ãããä½ã£ã¦ããã Public Class StringUtility Public Shared Function Repeat(source As String, times As Integer) As String Dim result As String = "" For i As Integer = 1 To times result += source Next Retur
{{#tags}}- {{label}}
{{/tags}}