List.Append() ... doesn't!
This took me a long time to figure out. If it is there, it should work, IMO.
The Append() function on a List type seems to do nothing at all.
Tagged:
0
Comments
-
Hi
Append method returns new list (in my opinion this method should add item to itself)
use:
List l = l.Append(item);
instead of:
l.Append(item);
0 -
Ahah!
Thanks fort pointing that out. It is not documented anywhere as far as I can see.
It does follow the standards for e-work functions that do not affect the object itself, although the new .Net 'objects' have member function too, making it confusing. The confusion is that they do not follow the .Net standards, eg for the IList interface where the Add() function does affect the object itself.
The great thing about standards is there are so many to choose from!
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 156 General Questions
- 149 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 33 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories