in
tri
home of the trivadians

Nach Ordnungsbegriffen durchsuchen

  • Design Guidelines for LINQ

    Have you wondered if and when you should use the new LINQ features in .Net 3.5? Like, where should I put a new extension method? Should I use Func<T> or a custom delegate? How do I best implement a mix-in (extension methods on an interface)? Well, Mircea Trofin has just published a new draft...
    Erstellt in Richard's blog (Weblog) von Anonymous am 03-13-2008
  • How to Update Data with LINQ-to-SQL

    When learning LINQ-to-SQL, it’s not immediately obvious how to do an update. Querying is easy, and there are methods for inserting and deleting. Updating usually occurs by modifying an object already known to the DataContext and then calling SubmitChanges on the context. var product = (from p in...
    Erstellt in Richard's blog (Weblog) von Anonymous am 02-18-2008
  • Calculating the Fibonacci Sequence with C# 3.0

    Scott Hanselman just posted his latest article in his weekly source code series. He shows various ways of producing the Fibonacci Sequence using various languages. I found it really interesting, for two reasons: I tried to do the C#3.0 one on my own after listening to a podcast about F#, and never could...
    Erstellt in Richard's blog (Weblog) von Anonymous am 01-24-2008
  • Using LinqPad to Create a Time-Selector Drop-Down List

    I am really getting into LINQ now! I think it’s fantastic. I recently wanted to develop a quick drop-down list in ASP.Net which allows a user to select a time of day from a list. The times are 15 minutes apart, so the list would look like this: … 08:00 08:15 08:30 08:45 09:00 … …...
    Erstellt in Richard's blog (Weblog) von Anonymous am 01-18-2008
  • A simple Mix-in with C# 3.0

    Heard of mix-ins? They’re an alternative to multiple inheritance, made popular recently by Ruby. Basically, you can use them to “mix in” methods from an interface with their implementations into a class. In Ruby you can do this by including a module in a class. In C#, you do it by implementing...
    Erstellt in Richard's blog (Weblog) von Anonymous am 12-25-2007
Seite 1 von 1 (5 Treffer)
/