Using Generics, you can store the column contents, and the type is stored
automatically.
Something like

List<int> comments = new List<int>();

comments.Add(1);





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

comments.Add("Hello");

/Reuben Bartolo
http://whatiseeinit.blogspot.com/




On 14 August 2012 17:50, Suraj <[email protected]> wrote:

> Hi,
> How can i add a new column to a list.
>
> I am trying to change a code which is having data table to a list. The
> existing code has
>
> *dtEng.Columns.Add("Comments", GetType(Int32))*
>
> How can i do this in List.
>
> Regards,
> Suraj
>
> --
> You received this message because you are subscribed to the Google
> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
> Web Services,.NET Remoting" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
> or visit the group website at http://megasolutions.net
>

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to