Browse by Tags

All Tags » MSDN » .NET (RSS)

PDC2008: Are Windows Forms Dead?

This year’s PDC is all about the cloud (or cloudy as I call it) and the .NET Framework 4.0. No one at Microsoft has ever told me that Windows Forms are dead (quite the opposite) but looking at the list of sessions for this year’s PDC I can only see WPF...

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

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

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

.NET 3.5 SP1, VS2008 SP1 And TFS2008 SP1 Released

Microsoft .NET Framework 3.5 Service Pack 1 Microsoft Visual Studio 2008 Service Pack 1 (iso) Visual Studio 2008 Team Foundation Server Service Pack 1

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: , , , , ,

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

Visual Studio 2008 Service Pack 1 Expected Next Week

According to the MSDN Subscriptions home page , we should expect Visual Studio 2008 Service Pack 1 availability after August 11, 2008.

Microsoft Releases SQL Server 2008

SQL Server 2008 is finally out and comes with the Entity Framework , which means that SP1 for Visual Studio 2008 and the .NET Framework is almost out.

Serialized In-Process ASP.NET Session State Store

ASP.NET provides out of the box three session state stores: Provider Description InProc Session state is stored in the ASP.NET cache. SQLServer Session state is stored out-of-process in an SQL Server database. StateServer Session state is stored out-of...

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

IIS/ASP.NET Cookieless Support Not Working As Expected

In one of the environments I work, cookies cannot be used because the pages run inside web browser controls running on a client application and cookies end up being shared by all browsers. Fortunately, ASP.NET allows us to persist some cookies as part...
Posted by Paulo Morgado | with no comments

Other Ways For Making PathInfo And ASP.NET Themes Work Together

On my last post I wrote about a solution for the problem that arises when we try the use path infos and ASP.NET Themes and Skins together . Raj Kaimal   suggested rewriting all LINK HTML elements URLs to the correct URL as seen from the client. Something...
Posted by Paulo Morgado | with no comments

Making PathInfo And ASP.NET Themes Work Together

Updated on 2008.07.28 – The code was done in a hurry and, talking to my friend Luís , I noticed that I had forgotten to make a case insensitive comparison and that the code was not so obvious. So, I updated the code and added an explanation. On my last...

PathInfo And ASP.NET Themes: Why Can’t They Work Together?

If you ever worked with ASP.NET Themes and Skins , you know that stylesheet links are added to the head section of the HTML document. The rendered URL to these stylesheets is always relative to location of the page being requested. So, for a request to...

Make The HttpValueCollection Class Public And Move It To System.DLL

I find the System.Web.HttpValueCollection class very useful in a wide number of situations that involve composing HTTP requests or any other need to represent name/value collection as a string (in an XML attribute, for example). As of now ( .NET Framework...

BEWARE: System.Web.HttpValueCollection Parsing Is Not Reversible

If you run this code: System.Collections.Specialized. NameValueCollection queryString = System.Web. HttpUtility .ParseQueryString( "noKey&=emptyKey&A=Akey" ); queryString will actually have the running type of System.Web.HttpValueCollection...
Posted by Paulo Morgado | with no comments
Filed under: , , , , ,

Why Use Random Values For Unit Testing

On a previous post I introduced a library for generating random values for purposes of unit testing. I received a few comments and questions on my blogs [ ^ ][ ^ ][ ^ ][ ^ ]. Simon says that he’d “generally want every instance of the test I run to be...

Replacing Loaded Assemblies

Recently I’ve been asked if it would be possible to replace the assemblies loaded by a .NET Windows Service application while it was running like with ASP.NET . Like with ASP.NET, an application start and end events where needed. The solution is quite...
Posted by Paulo Morgado | with no comments
Filed under: , , ,

Using Random Values For Unit Testing

When writing my unit tests I don’t like to use hard coded fixed values because I either end up using the same values or, because of that, tests may succeed by coincidence. Over time, I have developed an helper class to generate random values for testing...
More Posts Next page »