Home / ASP.NET Weblogs
All Tags » C# » MSDN » Microsoft » LINQ (RSS)

Browse by Tags

Related Posts

  • 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
  • How To Set Elements Of An Array Of A Private Type Using Visual Studio Shadows

    Visual Studio uses Publicize to create accessors public for private members and types of a type. But when you try to set elements of a private array of elements of a private type, things get complicated. Imagine this hypothetic class to test: public static class MyClass { private static readonly MyInnerClass...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 01-19-2010, 12:00 AM
    Filed under: Testing, MSDN, Microsoft, .NET, C#, VisualStudio, LINQ, VisualStudio2008, VisualStudio2010, TipsAndTricks, .NET2.0, .NET3.5, .NET4.0
  • Playing With LINQ: Getting Interface Property Implementations

    Today, my friend Nuno was writing some code to get the PropertyInfo s of a class implementation of an interface. Given this interface: public interface ISomeInterface { int IntProperty { get ; set ; } string StringProperty { get ; } void Method(); } and this class: public class SomeClass : ISomeInterface...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 01-27-2010, 12:00 AM
    Filed under: MSDN, Microsoft, .NET, C#, LINQ, TipsAndTricks, .NET3.5, .NET4.0
Page 1 of 1 (5 items)