Quantcast
Channel: Mohammad Rahman
Browsing latest articles
Browse All 26 View Live

Image may be NSFW.
Clik here to view.

Abstract Factory and Proxy design patterns

Abstract FactoryI have many individual types and those types will be used by some other types. For the consumer types, it has to know about all the individual types, so instead of doing this, we can...

View Article


Objects(same type) Deep comparison using C#

There are many situation like we need to compare objects for example, int a =7 and int b=9 so it is easy to compare like, if ( a > b) or if (a< b) or if (a ==b). But if the situation comes...

View Article


Image may be NSFW.
Clik here to view.

Exception logging using Elmah - Error Logging Modules and Handlers for ASP.NET

Exception logging in ASP.NET applciationException logging is one of the most important part of application maintenance. There are many open source logger application which we can use in our application...

View Article

Image may be NSFW.
Clik here to view.

Microsoft FxCop Sdk, Coding Standard and Custom RuleSet.

Microsoft FxCop Sdk is a library to help write programmers own ruleset i.e. we can write our own code analysis rulesets using FxCop sdk. Now the question is do we need to create our own custom ruleset?...

View Article

Image may be NSFW.
Clik here to view.

Enum Parser - Enum with string as values.

Enum  parser - I already wrote a article about this. The enum I used that article was standard enum i.e.public enum myEnum{ itemOne =0, itemTwo=1 } etc, but sometimes we need to do something like...

View Article


Image may be NSFW.
Clik here to view.

Generic Factory pattern - to switch between Mock and Production environment...

Factory pattern - in my previous article, I explain the factory in detail. One thing came up in my mind about generic factory pattern. This is really handy to have in project. For example if we are...

View Article

Codeproject article about Page and Web user control communication.

I just finish writing a tips/tricks article about Asp.Net Page and Web user control communication in Code project. That article is about, if we want to execute a method of Asp.Net page from a event...

View Article

Codeproject articles

I just published few articles in the code project. I wrote about enum parsing, few extension methods of string and ternary operator. Those article could be found,A Generic enum Parser in C#Few...

View Article


Improvement of Generic Enum Parser and .NET Extensions Methods Library for C#...

I updated the previous code about Generic Enum Parser. That code is I include into the .NET Extensions Methods Library for C# and VB.NET project in the Codeplex. The code is below,public static TEnum...

View Article


Codeplex, few new extension methods in .NET Extensions Methods Library for C#...

I have added few extension methods to the project. For instance, in the BooleanExtensions class I added ToBinaryTypeNumber and CombineWith method in the ArrayExtension class.Source code is in the...

View Article

A Generic Strategy Pattern implementation using C#

Strategy Pattern - according to this pattern, there will be an interface, few concrete classes which will implement the interface and there will be selection process of the concrete classes. There is...

View Article

Codeproject articles - Strategy method or Switch statement in C#

I just published another article in the code project. This article is about Strategy method which can be used to replace the switch statement in C#. That article could be found,Strategy method or...

View Article

return new Lazy(() => new T()); /* Lazy initialization of objects in C# */

We should try to initialize objects when we need it otherwise the objects will reside in the memory. Probably it won't matter when the object is not that expensive otherwise it really matters. So if we...

View Article


Code project - Caching uses with Proxy pattern in C#

I posted another article about improvement of Proxy Pattern by using Caching technique in C#. It could be found in Caching uses with Proxy pattern in C#.

View Article

Codeplex - .NET Utility Library project

I just published a project in Codeplex. The project name is DotNetUtility - a .NET Utility Library for C#. The project URL is DotNetUtility - a .NET Utility Library for C#. This is open source and if...

View Article


Codeproject article about Template method pattern in C#

I posted another article about Template method pattern and Action in C# in the Codeproject. It could be found in here.

View Article

Few extension methods of IEnumerable

Following code shows few extension methods of IEnumerable<string>,public static class EnumberableExtensions{        public static IEnumerable<string> IfMatchWith(this...

View Article


Codeproject article about extension methods of IEnumerable in C# in

I posted another article about extension methods of IEnumerable in C# in the Codeproject. It could be found in here

View Article

Image may be NSFW.
Clik here to view.

Code project recognition

Top experts in the last 24hrs section of the Code project,

View Article

Codeproject article

An alternative solution to find IP Address.

View Article

Image may be NSFW.
Clik here to view.

Send ASP.NET formatted errors details via Email.

Exception/Error is common scenario in any application. In ASP.NET, there many ways to handle those errors or exception, for example, when an error or exception occurred in ASP.NET application, system...

View Article


AnLogger - ASP.Net Logger

An Asp.Net Logger , please click on here to view details about AnLogger.

View Article


How does it work in C#?

A new article has been published in the Code Project. The article is in here.

View Article

Codeproject article - C# Linq in Detail

Another article just published in the Code project about the C# Linq in detail.To read please visit C# Linq in Detail.This article has been selected in the article of the month competition, please vote...

View Article

Image may be NSFW.
Clik here to view.

Expert C# 5.0 with the .NET 4.5 Framework - book published on 17th December 2012

Expert C# 5.0 with the .NET 4.5 Framework is a book about getting the best from C#. It’s based on the principle that to write good, high-performance, robust applications you need to understand whats...

View Article

Browsing latest articles
Browse All 26 View Live