Quantcast
Channel: Nuno Gomes /* Code Adventures */ - .NET
Browsing latest articles
Browse All 14 View Live

Email Regular Expression

From time to time the question strikes back: How to validate an Email? If you think you know the answer then you must read this Phil Haack post.

View Article



Image may be NSFW.
Clik here to view.

.NET Framework 2.0 SP1 - TagMapping Undocumented hotfix

While searching a way to solve the HtmlControls tag mapping problem I found that the new SP1 bring an extra undocumented hotfix. This undocumented hotfix changes MainTagNameToTypeMapper.GetControlType...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Controls - Improving automatic ID generation : Concept ( Part 2)

Before proceeding to the implementation details, let's discuss a little about how ASP.NET handles automatic Id generation. First of all, the Control.UniqueID property is the key to all major ASP.NET...

View Article

Image may be NSFW.
Clik here to view.

BitDiffer - Doing Assembly Differences

Two weeks ago, Paulo posted about "The Architecture Tool Space Keeps Growing". On this post, Paulo talked about new tools and the continuous improvements in the existing ones. Well, more recently I...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET - Dynamic Control Mapping

I already posted here about Tag Mapping and how helpful it can be, but naturally there's are a few improvements that I would like to see available in future framework release. The one I expect the...

View Article


ASP.NET - EventMappingSettingsCollection bug on Contains method

Recently, while digging on ASP.NET 2.0 Health Monitoring I found a bug in the EventMappingSettingsCollection.Contains class method.I was trying to check if an event mapping already exists but every...

View Article

To yield or not yield

Some time ago, Chris Massey challenged everyone to discuss about four interesting .NET performance questions. One of those questions was "When processing some data into a list, is it faster to build up...

View Article

Image may be NSFW.
Clik here to view.

.NET - Determine Whether an Assembly was compiled in Debug Mode

Finding out whether an assembly was compiled in Debug or Release mode is a task we must do from time to time. I know two ways of accomplish this:Searching for the...

View Article


.NET – The Garbage Collector and Finalizers

I’m not used to use Finalizers in my everyday job but I always thought that if I use it more frequently I could achieve some extra performance.Well, I’m a natural lazy programmer and that prevents me...

View Article


.NET – ArrayList hidden gem

From time to time I end-up finding really old hidden gems and a few days ago I found another one.IList System.Collections.ArrayList.ReadOnly(IList list)This amazing method is available since the...

View Article

Image may be NSFW.
Clik here to view.

ELWEA - EventLog WebEvent Aggregator for ASP.NET

Last time I wrote about Health Monitoring was during 2008 and since then I ‘m using, on a daily basis, a complex Health Monitoring EventLog provider to aggregate WebEvents from specific ASP.NET web...

View Article

OpenXML error “file is corrupt and cannot be opened.”

From time to time I ear some people saying their new web application supports data export to Excel format.So far so good … but they don’t tell the all story … in fact almost all the times what is...

View Article

Enum types, FlagsAttribute & Zero value

We all know about Enums types and use them every single day. What is not that often used is to decorate the Enum type with the FlagsAttribute.When an Enum type has the FlagsAttribute we can assign...

View Article


Enum types, FlagsAttribute & Zero value – Part 2

In my previous post I wrote about why you should pay attention when using enum value Zero. After reading that post you are probably thinking like Benjamin Roux: Why don’t you start the enum values at...

View Article
Browsing latest articles
Browse All 14 View Live




Latest Images