Browse by Tags

All Tags » LINQ » C# (RSS)

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...
Posted by Paulo Morgado | 2 comment(s)
Filed under: , , , , ,

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...
Posted by Paulo Morgado | with no comments

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...

Visual Studio 2008 and .NET Framework 3.5 shipped!

Visual Studio 2008 and .NET Framework 3.5 has finally shipped. MSDN subscribers can download the final version of Visual Studio 2008 from MSDN Subscription Downloads , but anyone can get a trial version or an Express Edition . The .NET Framework 3.5 contains...

Getting MethodInfo using LINQ

At the last MVP Global Summit , Mads showed me and Rich a way to get the MethodInfo of a method in a strongly typed way using LINQ . Here is how you can do it: public static class TypeHelper { public delegate void Method (); public delegate void Method...
Posted by Paulo Morgado | with no comments