A
Arthur Dent
I was wondering, ... does anyone know off hand which is faster?
I've seen articles where people suggest the method of using XML literals to
build strings... something like:
Dim s As String = <s>This is some string, built on <%= Format(Now,
"MM/dd/yyyy HH:mm") %></s>.Value
and I'm just curious how this might compare in speed to using String.Format,
more like:
Dim s As String = String.Format("This is some string, built on {0}",
Format(Now, "MM/dd/yyyy HH:mm"))
I've seen articles where people suggest the method of using XML literals to
build strings... something like:
Dim s As String = <s>This is some string, built on <%= Format(Now,
"MM/dd/yyyy HH:mm") %></s>.Value
and I'm just curious how this might compare in speed to using String.Format,
more like:
Dim s As String = String.Format("This is some string, built on {0}",
Format(Now, "MM/dd/yyyy HH:mm"))