Which is better a datatable or generic List of a struct type?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashybabes
    New Member
    • Jan 2010
    • 1

    Which is better a datatable or generic List of a struct type?

    I need to do some in-memory management of a data structure that contains only few columns ( InvoiceID,Recei ptID, Adjustment Amount, Balance Amount)?

    TIA
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    DataTable and Generic Lists are totally of different kinds....

    Use a DataTable if you want to store the data in a format it would have been in the database....

    Use Lists if you want to store data in just a array like structure

    Comment

    Working...