Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • LINQ With C# Book

    Luís just broke the news on our LINQ with C# book. I was honored with the invitation from Luís to write this book with him for FCA , for which he has already published a few books [ ^ ] [ ^ ] [ ^ ] before. This will be an entry level book in Portuguese targeted to anyone wanting to learn LINQ with C#...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 09-22-2008, 12:00 AM
    Filed under: SoftDev, Microsoft, .NET, C#, LINQ, Books
  • More On Another Way For Using The “using” Keyword

    In the past I presented another possible use for the using keyword: as hints on LINQ . I’ve been giving some thought about this lately and refined my proposal. var q = from person in personCollection using MyEnumerableExtensions group person by person.LastName into g using new MyOtherComparer () orderby...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 08-11-2008, 12:00 AM
    Filed under: SoftDev, MSDN, Microsoft, .NET, C#, LINQ
  • C# And Visual Basic Generate Different Expression Trees

    (This was pointed out to me by Frans Bouma and explained by Jon Skeet ) Imagine you have this set of classes: public class A { public virtual string P { get { return "A" ; } } } public class B : A { } public class C : B { public override string P { get { return "C" ; } } } And this class: public static...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 08-04-2008, 12:00 AM
    Filed under: SoftDev, MSDN, Microsoft, .NET, C#, LINQ, VisualBasic
  • TypeMock: How to Make Reflective Mocks More Natural

    Like I said before , this as been on the back of my mind for a while. A while back I introduced a way to get the MethodInfo of a method in a strongly typed way using LINQ , and that's how I'm going to make Reflective Mocks more Natural . Well, it's as easy as this: public static class MockExtender {...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 01-31-2008, 12:00 AM
    Filed under: UnitTests, Testing, TypeMock, Tools, SoftDev, MVP, MSDN, Microsoft, .NET, C#, LINQ
  • LINQ With C# Book Is Finally Out

    It’s finally out! The LINQ Com C# (LINQ With C#) book that Luís and I wrote is out. Well, mostly Luís than I. This book, published by FCA , is targeted at anyone that already knows C# 2.0 and wants to know learn the new features introduced with C# 3.0 that made possible LINQ (Language INtegrated Query...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 05-18-2009, 12:00 AM
    Filed under: SoftDev, .NET, C#, LINQ, VisualBasic, Books
  • Playing With SQL Server CLR Integration – Part III

    You might have noticed that I used LINQ in my last Playing With SQL Server CLR Integration posts ( Part I , Part II ). I couldn’t make it work with the standard Visual Studio 2008 SQL CLR project template. Changing the Target Framework to .NET Framework 3.5 wasn’t enough. I had to edit the .csproj file...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 06-12-2009, 12:00 AM
    Filed under: SQLServer, SoftDev, MSDN, Microsoft, .NET, LINQ, SQLServer2008, SQLServer2005, SQLCLR
  • LINQ To SQL Tips & Tricks: String Operations

    LINQ brought developers a very user friendly and domain independent style of writing queries. The fact that the way queries are written is domain independent doesn’t mean that any query will compile the same way or even run the same way. You’ll always need to know how the provider will behave. LINQ To...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 10-13-2009, 12:00 AM
    Filed under: SoftDev, .NET, C#, LINQ, TipsAndTricks, LINQ2SQL
  • LINQ: Enhancing Distinct With The PredicateEqualityComparer

    Today I was writing a LINQ query and I needed to select distinct values based on a comparison criteria. Fortunately, LINQ’ s Distinct method allows an equality comparer to be supplied, but, unfortunately, sometimes, this means having to write custom equality comparer. Because I was going to need more...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-08-2010, 12:00 AM
    Filed under: SoftDev, .NET, C#, LINQ, .NET3.5, .NET4.0
  • LINQ: Enhancing Distinct With The SelectorEqualityComparer

    On my last post , I introduced the PredicateEqualityComparer and a Distinct extension method that receives a predicate to internally create a PredicateEqualityComparer to filter elements. Using the predicate, greatly improves readability, conciseness and expressiveness of the queries, but it can be even...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-09-2010, 12:00 AM
    Filed under: SoftDev, .NET, C#, LINQ, .NET3.5, .NET4.0
  • Build Your Own LINQ Provider

    Mehfuz has been building a toolkit for creating LINQ providers and it's available at CodePlex : LINQExtender He has even built a LINQ provider for flickr with it: LINQ.Flickr
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 05-07-2008, 12:00 AM
    Filed under: SoftDev, MSDN, Microsoft, Architecture, .NET, LINQ
Page 1 of 1 (10 items)