LINQ: what is the type of a result? -


I have a simple selection of a dataset of typed:

  var from productlist = In Prds ("Manufacturer") is equivalent to prdcat.Field & lt; Int & gt; ("Manufacturer") where prdcat.Field & lt; Int & gt; ("" "" "" "Classified") == Select the category PDAs;  

Where the product list is recorded from the SkypeProducts dataset of the dataset. I'd like to write a function to filter the record with a specific one:

  public list & lt; string, string> GetDistinctManufacturerList (? Productlist, int manufacturerid) {manufacturers = producer Prdz in the list where prdz.Field & lt; int & gt; ("manufacturerid") == manufacturerid select prdz; [...]}  

what type of object should I refer to the variable productlist ?

Its an IEnumberable

  • selected data type - selected data type may be an anonymous type, or in this case, your dataset Type class.


  • Comments

    Popular posts from this blog

    python - Overriding the save method in Django ModelForm -

    html - CSS autoheight, but fit content to height of div -

    qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -