Here is what I came up with for those curious:
Imports System.Runtime.CompilerServices Module sbExtension <Extension()> _ Public Sub AppendFormattedLine(ByVal oStr As System.Text.StringBuilder, _ ByVal format As String, _ ByVal arg0 As Object) oStr.AppendFormat("{0}{1}", String.Format(format, arg0), ControlChars.NewLine) End Sub <Extension()> _ Public Sub AppendFormattedLine(ByVal oStr As System.Text.StringBuilder, _ ByVal format As String, ByVal arg0 As Object, _ ByVal arg1 As Object) oStr.AppendFormat("{0}{1}", String.Format(format, arg0, arg1), ControlChars.NewLine) End Sub <Extension()> _ Public Sub AppendFormattedLine(ByVal oStr As System.Text.StringBuilder, _ ByVal format As String, _ ByVal arg0 As Object, _ ByVal arg1 As Object, _ ByVal arg2 As Object) oStr.AppendFormat("{0}{1}", String.Format(format, arg0, arg1, arg2), ControlChars.NewLine) End Sub <Extension()> _ Public Sub AppendFormattedLine(ByVal oStr As System.Text.StringBuilder, _ ByVal format As String, _ ByVal ParamArray args() As Object) oStr.AppendFormat("{0}{1}", String.Format(format, args), ControlChars.NewLine) End Sub End Module
Anders
source share