Paulo Morgado

.NET Development & Architecture

This Blog

Syndication

Search

Sponsored By

Tags

News

Unit Test Today! Get Typemock Isolator!

Books

 

Events

Visitors

Visitor Locations

Community

Email Notifications

Archives

Profile

Browse by Tags

All Tags » C# (RSS)
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...

Posted Tue, Oct 13 2009 1:51 by Paulo Morgado | with no comments

PowerShell For The .NET Developer
Some time ago I needed to have the validationKey of the machineKey element of an ASP.NET application changed and found out that ASP.NET doesn’t provide a command-line tool (or any other) to do this. Looking around I found several applications and code...

Posted Fri, Sep 18 2009 1:03 by Paulo Morgado | with no comments

Filed under: , , ,

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

Posted Mon, May 18 2009 0:39 by Paulo Morgado | with no comments

Filed under: , , , , ,

Help Typemock Launch Its New Visual Basic .NET Friendly API And You Might Get A Free License
Typemock is announcing today a new version of Typemock Isolator (5.2). One of the coolest features in the new version is the inclusion of a new VB .NET unit testing API . This 'VB friendly' API was designed and written in VB.NET, for VB.NET developers...

Posted Tue, Jan 13 2009 21:32 by Paulo Morgado | with no comments

The Future Of C#
If you were able to attend this session at PDC or Tech-Ed EMEA Developers , you were presented with a first class presentation of the future of C# , presented, respectively, by Anders Hejlsberg and Mads Torgersen . For the near future ( .NET 4.0) C# will...

Posted Wed, Dec 3 2008 1:17 by Paulo Morgado | with no comments

MSDN Ramp Up Program
I just came across this: www.MyRampUp Ramp Up is a free, online, community-based program that can help users save time in learning Microsoft technology. The easy-to-access content (provided by subject-matter gurus) is specifically tailored to the Ramp...

Posted Fri, Nov 7 2008 0:53 by Paulo Morgado | with no comments

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

Posted Mon, Sep 22 2008 0:42 by Paulo Morgado | 1 comment(s)

Filed under: , , , , ,

PDC2008: Meet Me In Los Angeles
It’s not the first time I try but, for one reason or another, this is the first time I will go to the PDC ( Microsoft ’s Professional Developers Conference). According to the site “The PDC is designed for leading-edge developers and software architects...

Posted Thu, Sep 4 2008 1:23 by Paulo Morgado | 4 comment(s)

Clone Detective For Visual Studio
Clone Detective is a tool that integrates with Visual Studio and uses the ConQAT ( Con tinuous Q uality A ssessment T oolkit) to analyze C# projects and search for duplicated source code. Watch the videos and see if this is the tool you were looking for...

Posted Thu, Aug 28 2008 23:41 by Paulo Morgado | with no comments

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

Posted Thu, Aug 21 2008 0:36 by Paulo Morgado | with no comments

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 Mon, Aug 11 2008 1:47 by Paulo Morgado | 2 comment(s)

Filed under: , , , , ,

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

Posted Mon, Aug 11 2008 0:27 by Paulo Morgado | 5 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 Mon, Aug 4 2008 1:23 by Paulo Morgado | 1 comment(s)

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 Thu, Jun 5 2008 0:12 by Paulo Morgado | with no comments

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

Posted Tue, Apr 22 2008 1:35 by Paulo Morgado | 6 comment(s)

Filed under: , , , ,

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

Posted Thu, Jan 31 2008 23:56 by Paulo Morgado | 2 comment(s)

TypeMock Snippets For Visual Studio
I've just created a set of code snippets for Visual Studio for my most used features of TypeMock . Feel free to use it.

Posted Sun, Jan 13 2008 23:37 by Paulo Morgado | 9 comment(s)

Stop Designing for Testability (by Eli Lopian)
Eli Lopian from TypeMock™ , has an article on CodeProject about the disadvantages of design for testability and how to use TypeMock™ to remove these disadvantages while keep the advantages of unit testing. I have to say that I agree with Eli: design for...

Posted Wed, Dec 26 2007 21:25 by Paulo Morgado | with no comments

Unit Test Patterns for .NET (from TypeMock™)
There is a good set of articles about Unit Test Patterns in the TypeMock™ site: Unit-Test Patterns for .NET - Part I This article looks at patterns in unit testing and describes the main patterns found in tested .NET code. It also describes the problems...

Posted Wed, Dec 26 2007 20:21 by Paulo Morgado | with no comments

TypeTypeConverter vs. TypeNameConverter
Some time ago I complained about the fact that a TypeConverter for Type s was missing from the .NET Framework . At the time I had search for one in the framework but only found internal or private implementations. As it turns out, the version 2.0 of the...

Posted Sun, Nov 25 2007 22:37 by Paulo Morgado | 1 comment(s)

Filed under: , , , , ,

More Posts Next page »