Click here to Skip to main content
15,881,172 members

Articles by Mohammad A Rahman (Articles: 7, Tip/Tricks: 23)

Articles: 7, Tip/Tricks: 23

RSS Feed

Average article rating: 4.84

.NET
29 Apr 2011   Updated: 29 Apr 2011   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 63,040     Bookmarked: 24   Downloaded: 2,572
Please Sign up or sign in to vote.
Exception logging using Elmah - Error Logging Modules and Handlers for ASP.NET
Artificial Intelligence
Machine Learning
27 Sep 2011   Updated: 1 Feb 2012   Rating: 4.77/5    Votes: 11   Popularity: 4.77
Licence: CPOL    Views: 85,249     Bookmarked: 29   Downloaded: 0
Please Sign up or sign in to vote.
ID3 Decision Tree Algorithm - Part 1 (Attribute Selection Basic Information)
Programming Languages
C#
14 Feb 2012   Updated: 30 Apr 2012   Rating: 4.99/5    Votes: 54   Popularity: 8.64
Licence: CPOL    Views: 141,442     Bookmarked: 77   Downloaded: 1,055
Please Sign up or sign in to vote.
The Mono is an Open Source free programming language project. It has the implementation of Microsoft’s .NET Framework based on the ECMA standards for C# language and Common Language Runtime (CLR). In this article, I will explore how the Mono C# compiler works.
C# 4.0
10 Oct 2011   Updated: 20 Nov 2012   Rating: 4.79/5    Votes: 78   Popularity: 9.06
Licence: CPOL    Views: 206,982     Bookmarked: 246   Downloaded: 2,468
Please Sign up or sign in to vote.
How does var, auto implemented properties and += or -= of events work in C# programming language.
12 Oct 2011   Updated: 4 Feb 2013   Rating: 4.81/5    Votes: 42   Popularity: 7.76
Licence: CPOL    Views: 102,998     Bookmarked: 150   Downloaded: 1,764
Please Sign up or sign in to vote.
How does throw, rethrow and where, select clause of Enumerable class work in C# programming language.
Web Development
ASP.NET
9 Oct 2011   Updated: 13 Nov 2011   Rating: 4.60/5    Votes: 11   Popularity: 4.60
Licence: CPOL    Views: 64,706     Bookmarked: 44   Downloaded: 1,574
Please Sign up or sign in to vote.
Easy and Fast ASP.NET Logging via Email and Storing Exception into File System as Files
13 May 2012   Updated: 23 Jul 2013   Rating: 4.95/5    Votes: 180   Popularity: 11.16
Licence: CPOL    Views: 730,163     Bookmarked: 466   Downloaded: 920
Please Sign up or sign in to vote.
Language Integrated Query (LINQ) is a Microsoft .NET Framework component that works as a communicator between the objects and the data. This article partially taken from the "Expert C# 5.0" - book and it will explore the different extension methods used in the LINQ using C# and IL code to discuss..

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.44

General Programming
String
28 Jun 2011   Updated: 29 Jun 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 6,270     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
The idea was good, but I think we could probably do something like below:public static string UsingStringJoin(IEnumerable sList, string separator){ return sList.Any() ? string.Join(separator, sList.ToArray()) : string.Empty;}public static string...
Programming Languages
C#
12 Jun 2011   Updated: 12 Jun 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 29,151     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
Caching uses with Proxy pattern in C#
20 Jun 2011   Updated: 21 Jun 2011   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: CPOL    Views: 30,082     Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
An abstract base class with abstract methods and a common method with implementation which will be used by the implementer classes of the abstract class.
26 Jun 2011   Updated: 26 Jun 2011   Rating: 4.71/5    Votes: 4   Popularity: 2.84
Licence: CPOL    Views: 41,371     Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
Some logical and arithmetic operations in C#
28 Jun 2011   Updated: 29 Jun 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 9,320     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
The code has been updated to improve the performance:public static bool DoSequenceOfOr(params Func[] sequenceOfBooleanValue){ foreach (Func item in sequenceOfBooleanValue) if (item()) return true; return false;}public static bool...
10 Jul 2011   Updated: 10 Jul 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 34,582     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Parse key/value of a Generic dictionary in C#.
29 Sep 2011   Updated: 30 Sep 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 43,881     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
Following might be another way to do the job:public static string ConvertDataTableToString(this DataTable dt){ StringBuilder stringBuilder = new StringBuilder(); dt.Rows.Cast().ToList().ForEach(dataRow => { ...
22 Sep 2011   Updated: 2 Oct 2011   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: CPOL    Views: 23,969     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
The List class already has a method doing the same job as:public static void ForEach(this IList list, Action function)More about the ForEach method is available here. Here is the reflected ForEach method:public void ForEach(Action action){ if (action == null) { ...
8 Jun 2011   Updated: 8 Jun 2011   Rating: 4.63/5    Votes: 7   Popularity: 3.91
Licence: CPOL    Views: 45,207     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
24 May 2011   Updated: 25 Jun 2011   Rating: 3.50/5    Votes: 2   Popularity: 1.05
Licence: CPOL    Views: 19,524     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
A Generic Ternary Operator for value types and parameterless method
4 Jul 2011   Updated: 4 Jul 2011   Rating: 4.50/5    Votes: 2   Popularity: 1.35
Licence: CPOL    Views: 9,420     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Strategy of type selection in C#
4 Jul 2011   Updated: 5 Jul 2011   Rating: 1.00/5    Votes: 2   Popularity: 0.30
Licence: CPOL    Views: 41,575     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Few extension methods of IEnumerable in C#
1 Oct 2011   Updated: 2 Oct 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 19,164     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Rename all the files from the given folder using C#. The code will go through all the files and rename with the same name but with formatted name for example by removing "-" or "_" etc with given characters..
23 Sep 2011   Updated: 2 Oct 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 7,201     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
In addition, there are many articles posts that have been discussed about this, for example,Single Instance Application in C#[^]Single-Instance C# Application - for .NET 2.0[^]Stream Decorator, Single-Instance Apps[^]
4 Oct 2011   Updated: 4 Oct 2011   Rating: 4.33/5    Votes: 6   Popularity: 3.37
Licence: CPOL    Views: 53,182     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
It could be done using Recursive Lambda Expression, for example,class Program{ static Func Factorial = x => x < 0 ? -1 : x == 1 || x == 0 ? 1 : x * Factorial(x - 1); static void Main(string[] args) { Console.WriteLine(Factorial(5)); }}(The code...
C# 4.0
22 Sep 2011   Updated: 22 Sep 2011   Rating: 4.43/5    Votes: 7   Popularity: 3.74
Licence: CPOL    Views: 15,410     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
A generic text clear method for those ASP.NET controls which implement the ITextControl interface:private void Clear(ControlCollection controlCollection) where T : ITextControl{ if (controlCollection == null) return; ...
18 May 2011   Updated: 22 May 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 45,190     Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
30 May 2011   Updated: 7 Jun 2011   Rating: 3.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 12,190     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
The ParseEnum method will not work where we use a version below .NET Framework 4.0 because of the TryParse method. So those who need to use it in below .NET Framework 4.0 or in .NET Framework 4.0, the following extension methods will be helpful:public static TEnum ParseEnum(this...
22 May 2011   Updated: 19 Jun 2011   Rating: 4.80/5    Votes: 4   Popularity: 2.89
Licence: CPOL    Views: 33,651     Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
Few extension methods of String concatenation in C#
25 Jul 2011   Updated: 25 Jul 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: CPOL    Views: 6,710     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
Another way,public static class ReverseStringExtension{ public static string Reverse(this string dataToRevese) { Func reverseFunc = (dataToFunc) => { StringBuilder reverseBuilder = new StringBuilder(); for (int index =...
Visual Basic
14 Sep 2011   Updated: 14 Sep 2011   Rating: 4.75/5    Votes: 5   Popularity: 3.32
Licence: CPOL    Views: 9,770     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
namespace IpAddresses{ using System; using System.Collections.Generic; using System.Linq; using System.Net; class Program { static void Main(string[] args) { GetIPAddresses().ForEach(ip => Console.WriteLine(ip)); } ...
Web Development
ASP.NET
13 May 2011   Updated: 14 Jun 2011   Rating: 4.13/5    Votes: 7   Popularity: 3.49
Licence: CPOL    Views: 35,911     Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
How to execute ASP.NET method from control's event handler of a web user control.
23 Sep 2011   Updated: 9 Oct 2011   Rating: 4.95/5    Votes: 13   Popularity: 5.52
Licence: CPOL    Views: 73,156     Bookmarked: 21   Downloaded: 0
Please Sign up or sign in to vote.
How to send ASP.NET formatted exception details via email

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Software Developer
Australia Australia