Extending dynamic sorting of objects using lightweight code generation.

Posted by: Marc's Musings, on 09 Mar 2006 | View original | Bookmarked: 0 time(s)

RE: Dynamic sorting of objects using lightweight code generation.I got a report of issues sorting objects that have null (not Nullable<T>) values. In the previous implementation, I blindly call down to the CompareTo method associated with the property's Type. This obviously doesn't work with virtual methods. For some types (like String) it was enough to simply make the emitted code a Call instead of a CallVirt, but I didn't want to be half-right. So the new version does the right thing and...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1407 | Hits: 203

Similar Posts

  • New Dynamic Data Controls ASP.NET : Nifty, But Not Real World more
  • Updated files for Dynamic method caller available... more
  • The power of generics compells you, the power of generics compells you... more
  • System.Enum.CompareTo needs boxed values... more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD