<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Finding a Maximum value</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Finding a Maximum value</description>
  <pubDate>Sun, 12 Apr 2026 07:22:12 -700</pubDate>
  <lastBuildDate>Thu, 20 Oct 2011 10:35:02 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3024</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Finding a Maximum value : I&amp;#039;m glad I could help and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3024&amp;PID=11903#11903</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3024<br /><strong>Posted:</strong> 20-Oct-2011 at 10:35am<br /><br />I'm glad I could help and nice catch...&nbsp;<div>I updated it for clarity.</div><div><br></div><div>Silvio.</div>]]>
   </description>
   <pubDate>Thu, 20 Oct 2011 10:35:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3024&amp;PID=11903#11903</guid>
  </item> 
  <item>
   <title>Finding a Maximum value :   Thanks - thus far it looks...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3024&amp;PID=11876#11876</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1303" rel="nofollow">Delta_Rich</a><br /><strong>Subject:</strong> 3024<br /><strong>Posted:</strong> 19-Oct-2011 at 8:48pm<br /><br />Thanks - thus far it looks like this has solved the issue, just doing some more testing but looking good thus far (aside from the typos mixing up LastUpdated and UpdateTracker).]]>
   </description>
   <pubDate>Wed, 19 Oct 2011 20:48:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3024&amp;PID=11876#11876</guid>
  </item> 
  <item>
   <title>Finding a Maximum value :     Hi Delta_Rich,If you are...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3024&amp;PID=11874#11874</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3024<br /><strong>Posted:</strong> 19-Oct-2011 at 4:36pm<br /><br />Hi Delta_Rich,<div>&nbsp;</div><div>If you are simply looking for the highest UpdateTracker value, try:</div><div>&nbsp;</div><div><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas">var</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">&nbsp;LastUpdated = CriticalEvents.Max(CriticalEvent =&gt; CriticalEvent.</font><font size="2" face="C&#111;nsolas">UpdateTracker);</font></font></div><div><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"></font></font></div><div>&nbsp;</div><div>Or if you want to retrieve the CriticalEvent entity with the highest UpdateTracker value, then try:</div><div>&nbsp;</div><div><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas"><font color="#0000ff" size="2" face="C&#111;nsolas">var</font></font></font><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"> LastUpdated = CriticalEvents.Where(CriticalEvent =&gt; CriticalEvent.UpdateTracker == CriticalEvents.Max(cEvent =&gt; cEvent.</font><font size="2" face="C&#111;nsolas">UpdateTracker)).First();</font></font></div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div><span style="font-size:10px"><br /><br />Edited by sbelini - 20-Oct-2011 at 10:34am</span>]]>
   </description>
   <pubDate>Wed, 19 Oct 2011 16:36:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3024&amp;PID=11874#11874</guid>
  </item> 
  <item>
   <title>Finding a Maximum value :     Once my ObservableCollection...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3024&amp;PID=11872#11872</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1303" rel="nofollow">Delta_Rich</a><br /><strong>Subject:</strong> 3024<br /><strong>Posted:</strong> 19-Oct-2011 at 2:53pm<br /><br /><font size="3" face="Times New Roman"></font><p style="margin: 0cm 0cm 0pt;" ="Ms&#111;normal"><font size="3"><font face="Times New Roman">Once my ObservableCollection finishes loading, I wish tofind out what the <br>Maximum value of one of the elements is.<br><br>I have used the Max() function but it does not seem to reporting the correctitem<br><br>e.g. My collection is CriticalEvents and the element I am trying to get is <br>UpdateTracker (which is a decimal) the code thus goes like this:<br>LastUpdated = CriticalEvents.Max().UpdateTracker;<br><br>It does indeed return a value but it is not the maximum value of UpdateTracker<br>in this is collection (more like middle of the collection).<br><br>Can you please advise me of what assumption I have made that is incorrect&nbsp;and how to solve this issue?<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></font></font></p><font size="3" face="Times New Roman"></font>]]>
   </description>
   <pubDate>Wed, 19 Oct 2011 14:53:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3024&amp;PID=11872#11872</guid>
  </item> 
 </channel>
</rss>