For Each tag As HtmlTag In tags
insertTextBuilder.Remove(0, insertTextBuilder.Length)
insertTextBuilder.AppendFormat("<{0}", tag.Name)
views:
104answers:
3
+1
A:
I'm going to assume here that insertTextBuilder
is a StringBuilder
.
- take each tag in the collection, type it as
HtmlTag
.
For each tag:
- Erase the string builder's value.
Remove()
from index 0 to the length of the stringbuilder's value. - put in text "
<something
"
You'll be left with the last value in the loop. In other words, do a whole bunch of work, always erase what you previously did, and end up with "<something
", whatever the LAST tag was in the collection.
Was there a specific line of code, or method call that you were interested in?
p.campbell
2010-08-23 15:48:35
A:
As far as I can see it's going to leave string builder with a < and then the contents of the 'Name' for the last tag in the collection "tags". Lot of effort for not much content.
Paul Hadfield
2010-08-23 15:51:17
A:
clocKwize
2010-08-23 16:08:54