I feel your pain, but you should accept that documentation and software
aren't without bugs. What you can do to help the community, is simply click
the "Send comments on this topic.." at the bottom of each page and hope the
contents will be updated, I experienced some good results in doing so.
Willy.
<do*********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
| Willy,
|
| Thanks for pointing me at better docs. I was looking at
|
|
http://msdn.microsoft.com/library/de...engthtopic.asp
|
| (though I started my search for the Length property at msdn2. ...).
|
| The question now is, how the heck are we supposed to reconcile
| differing docs which are both live on MSDN and both, on the surface,
| up-to-date and "official", accurate docs? That's just unacceptable.
|
| Thanks again,
|
| Donnie
|
|
| Willy Denoyette [MVP] wrote:
| >
http://msdn2.microsoft.com/en-us/lib....aspxdescribes
the correct behavior for all versions of the framework, theprevious
documentation was simply wrong.Willy.<do*********@gmail.comwrote in
messagenews:11**********************@i3g2000cwc.go oglegroups.com...| Marc,||
The workaround is, prior to calling StringBuilder.ToString(), to call|
StringBuilder.Replace('\0', ' '). But the docs and the actual behavior| need
to match. So I'm trying to get some "official" clarification as to| what's
right and what I should expect.|| Donnie||| Marc Gravell wrote:| It looks
like the docs changed:|
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemtextstringbuilderclasslengthtopic.asp|
vs|
http://msdn2.microsoft.com/en-us/library/system.text.stringbuilder.length.aspx|
| I guess you would have to just find the number of spaces you are| >
"missing", and append via the string ctor that accepts a char and a| count
(int).| >| Marc|
|