in
tri
home of the trivadians

Nach Ordnungsbegriffen durchsuchen

  • Remove and Sort Those Ugly “using-Statements”

    Visual Studio 2008 has lots of goodies in it, like LINQ syntax, CSS editing, and testing tools. There’s a lesser-known feature which I really appreciate though - the “Remove and Sort Usings” command in the C# editor. You activate the command by placing your cursor over the using statements...
    Erstellt in Richard's blog (Weblog) von Anonymous am 03-03-2008
  • Refactoring C# Series: Aggregation of IEnumerable

    I was recently reading this book about the Ruby programming language, and came across this piece of example code: [1,3,5,7].inject(0) {|sum, element| sum+element} -> 16 [1,3,5,7].inject(1) {|product, element| product*element} -> 105 Inject is a method which acts on an array...
    Erstellt in Richard's blog (Weblog) von Anonymous am 03-02-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
  • Can You Pass an Anonymous Type Across Functions?

    One of the biggest questions with Anonymous Types is “can I pass them around?” If not, why not? Can you do something like this, for example: var GetAnonymousValue() { return new { Name = “Richard Bushnell” }; } void Main() { var value = GetAnonymousValue(); var name = value.Name;...
    Erstellt in Richard's blog (Weblog) von Anonymous am 01-08-2008
Seite 1 von 1 (4 Treffer)
/