var type in C# - casting it and use as a parameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bortkevb
    New Member
    • Mar 2008
    • 1

    var type in C# - casting it and use as a parameter

    I'm trying to minimize DB trips while using LINQ. I got data that I needed into VAR , but I bumped into couple of roadblocks:

    1. how do I make VAR public(or at least internal)
    2. how do I pass it as a parameter.

    I realize that I can just loop thru and reassign to "normal" collection, but I hope there is a vay to cast it somehow.

    Thank you
Working...