Click here to Skip to main content
14,934,560 members

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

Articles: 7, Tip/Tricks: 23

RSS Feed

Average article rating: 4.84

.NET
Posted: 29 Apr 2011   Updated: 29 Apr 2011   Views: 59,720   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 24   Downloaded: 2,547
Please Sign up or sign in to vote.
Exception logging using Elmah - Error Logging Modules and Handlers for ASP.NET
Artificial Intelligence
Machine Learning
Posted: 27 Sep 2011   Updated: 1 Feb 2012   Views: 73,475   Rating: 4.77/5    Votes: 11   Popularity: 4.77
Licence: The Code Project Open License (CPOL)      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#
Posted: 14 Feb 2012   Updated: 30 Apr 2012   Views: 116,787   Rating: 4.99/5    Votes: 54   Popularity: 8.64
Licence: The Code Project Open License (CPOL)      Bookmarked: 78   Downloaded: 1,034
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
Posted: 10 Oct 2011   Updated: 20 Nov 2012   Views: 181,187   Rating: 4.79/5    Votes: 78   Popularity: 9.06
Licence: The Code Project Open License (CPOL)      Bookmarked: 245   Downloaded: 2,454
Please Sign up or sign in to vote.
How does var, auto implemented properties and += or -= of events work in C# programming language.
Posted: 12 Oct 2011   Updated: 4 Feb 2013   Views: 90,716   Rating: 4.81/5    Votes: 42   Popularity: 7.76
Licence: The Code Project Open License (CPOL)      Bookmarked: 150   Downloaded: 1,756
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
Posted: 9 Oct 2011   Updated: 13 Nov 2011   Views: 55,156   Rating: 4.60/5    Votes: 11   Popularity: 4.60
Licence: The Code Project Open License (CPOL)      Bookmarked: 44   Downloaded: 1,560
Please Sign up or sign in to vote.
Easy and Fast ASP.NET Logging via Email and Storing Exception into File System as Files
Posted: 13 May 2012   Updated: 23 Jul 2013   Views: 575,692   Rating: 4.95/5    Votes: 180   Popularity: 11.16
Licence: The Code Project Open License (CPOL)      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
Posted: 28 Jun 2011   Updated: 29 Jun 2011   Views: 5,720   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      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#
Posted: 12 Jun 2011   Updated: 12 Jun 2011   Views: 26,441   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
Caching uses with Proxy pattern in C#
Posted: 20 Jun 2011   Updated: 21 Jun 2011   Views: 27,821   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: The Code Project Open License (CPOL)      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.
Posted: 26 Jun 2011   Updated: 26 Jun 2011   Views: 37,381   Rating: 4.71/5    Votes: 4   Popularity: 2.84
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
Some logical and arithmetic operations in C#
Posted: 28 Jun 2011   Updated: 29 Jun 2011   Views: 7,940   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      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...
Posted: 10 Jul 2011   Updated: 10 Jul 2011   Views: 28,841   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Parse key/value of a Generic dictionary in C#.
Posted: 29 Sep 2011   Updated: 30 Sep 2011   Views: 37,699   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      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 => { ...
Posted: 22 Sep 2011   Updated: 2 Oct 2011   Views: 18,393   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      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) { ...
Posted: 8 Jun 2011   Updated: 8 Jun 2011   Views: 41,247   Rating: 4.63/5    Votes: 7   Popularity: 3.91
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Posted: 24 May 2011   Updated: 25 Jun 2011   Views: 17,972   Rating: 3.50/5    Votes: 2   Popularity: 1.05
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
A Generic Ternary Operator for value types and parameterless method
Posted: 4 Jul 2011   Updated: 4 Jul 2011   Views: 8,830   Rating: 4.50/5    Votes: 2   Popularity: 1.35
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Strategy of type selection in C#
Posted: 4 Jul 2011   Updated: 5 Jul 2011   Views: 34,685   Rating: 1.00/5    Votes: 2   Popularity: 0.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
Few extension methods of IEnumerable in C#
Posted: 1 Oct 2011   Updated: 2 Oct 2011   Views: 16,794   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      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..
Posted: 23 Sep 2011   Updated: 2 Oct 2011   Views: 6,791   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      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[^]
Posted: 4 Oct 2011   Updated: 4 Oct 2011   Views: 47,172   Rating: 4.33/5    Votes: 6   Popularity: 3.37
Licence: The Code Project Open License (CPOL)      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
Posted: 22 Sep 2011   Updated: 22 Sep 2011   Views: 13,840   Rating: 4.43/5    Votes: 7   Popularity: 3.74
Licence: The Code Project Open License (CPOL)      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; ...
Posted: 18 May 2011   Updated: 22 May 2011   Views: 41,910   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
Posted: 30 May 2011   Updated: 7 Jun 2011   Views: 10,050   Rating: 3.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      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...
Posted: 22 May 2011   Updated: 19 Jun 2011   Views: 29,541   Rating: 4.80/5    Votes: 4   Popularity: 2.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
Few extension methods of String concatenation in C#
Posted: 25 Jul 2011   Updated: 25 Jul 2011   Views: 6,210   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      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
Posted: 14 Sep 2011   Updated: 14 Sep 2011   Views: 8,850   Rating: 4.75/5    Votes: 5   Popularity: 3.32
Licence: The Code Project Open License (CPOL)      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
Posted: 13 May 2011   Updated: 14 Jun 2011   Views: 33,950   Rating: 4.13/5    Votes: 7   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      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.
Posted: 23 Sep 2011   Updated: 9 Oct 2011   Views: 65,393   Rating: 4.95/5    Votes: 13   Popularity: 5.52
Licence: The Code Project Open License (CPOL)      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.