Browse by Tags

Related Posts

  • Re: generics, inheritance ..... frustrated

    I was annoyed about it too. Apparently also some Microsoft people was, so at least they made a convertion function you can call, ConvertAll(), but you have to implement a convert function yourself. See this post: http://rasor.wordpress.com/2008/08/19/cast-a-generic-list-c/ The code would be more readable...
    Posted to Visual Basic .NET (Forum) by rasor on 08-27-2008, 12:00 AM
    Filed under: vb.net2.0, Visual Basic .NET, .NET, c#, collections, Generics, lists, generic collections
  • Generics Collection Function, create populate function (object property=value) separate?

    Hi, I have a function that creates a generic collection: Public Shared Function SelectAllProjects() As List( Of Project) Dim getprojectslist As New DataConnector Dim allprojectsds As DataSet = getprojectslist.ExecuteDataSet( "getallprojects" , CommandType.StoredProcedure, BRI.Data.ConnectionState...
    Posted to Getting Started (Forum) by JKC on 09-19-2007, 12:00 AM
    Filed under: Objects, VB .NET, asp 2.0, collections, datasets, generics
  • how to convert generic list to list of type string

    hi, this is sample code, public class BackUpLogic<T> { public void tableBackup(List<string> columnNames, List<T> tableData) { foreach (string cName in columnNames) { } foreach (T tRow in tableData) { } } } in second foreach ,tRow is holding data of one database table row. i wan to convert...
    Posted to C# (Forum) by cmakwana on 06-19-2009, 12:00 AM
    Filed under: collection, Generics, generic, collections, Generic List, Casting, generics in C#
Page 1 of 1 (3 items)