Can we add any type of value in the list object ?

Posted by Harikrishna on Stack Overflow See other posts from Stack Overflow or by Harikrishna
Published on 2010-05-15T10:08:48Z Indexed on 2010/05/15 10:14 UTC
Read the original article Hit count: 134

Filed under:
|
|

Can we add in the list object any type of value ?

Like if we

List<string> str=new List<string>();

then only string value can be added to list.But I want to add any type of value in the list like string,decimal.

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms