Skip to content
PJG Creations Logo
  • Home
  • About Us
  • Blog
  • VB.Net Video Training
  • Contact Us

Obtaining the Maximum value in a list or Collection using Linq

In order to retrieve the highest value of a column in a list of collection, Linq offers a handy method to achieve this; Dim maxUnitsInStock = Aggregate prod In db.Products _ Into Max(prod.UnitsInStock)Simple!

By Peter Gallagher|2012-12-16T21:02:00+00:00December 16th, 2012|.Net Framework, Data, Linq, VB.net|0 Comments
Read More

Get Social

ABOUT US

PJG Creations creates bespoke desktop and web applications for companies across the country.

Specialising in converting outdated paper based or legacy software systems, to modern, database driven, process led applications.

Our latest Tweets

PJGCreations

- 4 days ago

@IoTeaLive: That's right folks! We're back next Tuesday evening - 5th July - from 9pm BST on the @AzureishLive @Twitch channel! Join @pete_codes, @mariamou_7 and @CliffordAgius (with some possible special guests!) right here... https://t.co/r2aa2XS74r #JulyOT https://t.co/jad6QNDpUN
h J R
PJGCreations

- 6 days ago

@pete_codes: Take your #IoT skills & career to the next level - Pass the @Microsoft @Azure #AZ220 IoT Developer Cert. Myself, @JurgenOnAzure, @Zaalion & @JamesMillar have created a @pluralsight course aligned directly to the exam OD here... https://t.co/vrCcJ5BK9x @MicrosoftIoT @msdevUK
h J R
PJGCreations

- 44 days ago

@dotnetnotts: Join us this Monday from 18:30BST, where we'll be joined by @stevetalkscode who'll be talking about The (Source Code) Generation Game! This will be a good one! https://t.co/g1FkJLKJzw
h J R
PJGCreations

- 53 days ago

@dotnetnotts: Join us on Monday 23rd May from 18:30BST, where @stevetalkscode will be talking about The [Source Code] Generation Game! https://t.co/W1tgdLr5fB. Thanks to @PJGCreations, @technottingham, @jetbrains and Calyx!
h J R
PJGCreations

- 148 days ago

@CliffordAgius: If only I could do both jobs. 🤔☹️ Be so cool to help young devs on their journey is that something you could help with? Apply you don't know where it will take you. https://t.co/923yF14m0e
h J R
Follow PJGCreations
Copyright 2017 PJG Creations Ltd | All Rights Reserved | Terms and Conditions
Toggle Sliding Bar Area