« 初投稿、このブログにエントリする内容 | メイン | ジ・オ使いです。 »

コメント

dc2

っだぁーー

全然ダメだ。

使い方がわからん…。

Public Class Formatter
Implements ICustomFormatter

' After String.Format gets the ICustomFormatter, it calls this format
' method on each argument.
Public Function Format(ByVal theformat As String, ByVal arg As Object, ByVal provider As IFormatProvider) As String _
Implements ICustomFormatter.Format

If theformat Is Nothing Then
Return String.Format("{0}", arg)
End If

If TypeOf arg Is IFormattable Then
Return Replace(CType(arg, IFormattable).ToString(Format, Nothing), "c:\Documents and settings", "../OfficailDoc/")
End If

Return arg.ToString()
End Function
End Class

この記事へのコメントは終了しました。