Browse by Tags

Related Posts

  • 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: TypeMock, LINQ, MSDN, .NET, C#, Microsoft, MVP, SoftDev, Testing, Tools, UnitTests
  • Stretching Type Inference

    Note: Code in italics is not actual C# 3.0 syntax. Local Variable Type Inference C# 3.0 brought us local variable type inference mainly because of LINQ . The output of a query can vary from an IEnumerable<T> or an IQueryable<T> to a single instance of T where T can even be a projection which...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 04-22-2008, 12:00 AM
    Filed under: MSDN, Microsoft, .NET, C#, VisualStudio
  • 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
  • How About Property Assignment And Collection Adding Like Object And Collection Initializers In C#?

    C# 3.0 introduced object and collection initializers . It is now easier to initialize objects or collections: var person = new Person { FirstName = "Paulo" , LastName = "Morgado" }; var persons = new List < Person > { new Person { FirstName = "Paulo" , LastName = "Morgado"...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 08-11-2008, 12:00 AM
    Filed under: SoftDev, MSDN, Microsoft, .NET, C#
  • 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
  • StyleCop 4.3 Is Out

    The StyleCop team announced the release of a version 4.3 of the StyleCop tool . You can get it from here . On this version there are some bug fixes, new rules and documentation. Also in this version, the list of errors and warnings goes to the Errors List window like with the compilers. I whish that...
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 8 hours, 9 minutes ago
    Filed under: Tools, SoftDev, MSDN, Microsoft, .NET, C#, CodingConventions
  • Microsoft Source Analysis for C# (aka StyleCop)

    I’ve learned from a fellow GASP er of the release of Microsoft Source Analysis for C# (aka StyleCop) . It’s still a work in progress but it’s already very useful.
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 06-05-2008, 12:00 AM
    Filed under: NamingConventions, Tools, SoftDev, MSDN, Microsoft, .NET, C#, VisualStudio
  • Page Flow Application Block With Page Modules

    If you want to see how you can use Page Modules and its benefits, read this .
    Posted to Paulo Morgado (Weblog) by Paulo Morgado on 09-27-2007, 12:00 AM
    Filed under: Community, ASP.NET, SoftDev, PageFlow, PnP, WCSF, Web, MVP, MSDN, SoftwareFactories, Microsoft, Architecture, .NET, PageModules, C#
Page 1 of 1 (8 items)
Microsoft Communities