Click here to Skip to main content

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

Articles: 7, Tip/Tricks: 23

RSS Feed

Average article rating: 4.85

Trace and Logs
Trace / Logs
Posted: 9 Oct 2011   Updated: 13 Nov 2011   Views: 25,013   Rating: 4.65/5    Votes: 10   Popularity: 4.63
Licence: The Code Project Open License (CPOL)      Bookmarked: 42   Downloaded: 1,240
Easy and Fast ASP.NET Logging via Email and Storing Exception into File System as Files
C#
General
Posted: 14 Feb 2012   Updated: 30 Apr 2012   Views: 62,591   Rating: 4.99/5    Votes: 50   Popularity: 8.47
Licence: The Code Project Open License (CPOL)      Bookmarked: 72   Downloaded: 776
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.
Posted: 10 Oct 2011   Updated: 20 Nov 2012   Views: 107,890   Rating: 4.78/5    Votes: 76   Popularity: 8.98
Licence: The Code Project Open License (CPOL)      Bookmarked: 238   Downloaded: 2,292
How does var, auto implemented properties and += or -= of events work in C# programming language.
Posted: 12 Oct 2011   Updated: 4 Feb 2013   Views: 57,556   Rating: 4.78/5    Votes: 41   Popularity: 7.71
Licence: The Code Project Open License (CPOL)      Bookmarked: 146   Downloaded: 1,650
How does throw, rethrow and where, select clause of Enumerable class work in C# programming language.
Posted: 13 May 2012   Updated: 23 Jul 2013   Views: 272,796   Rating: 4.95/5    Votes: 170   Popularity: 11.04
Licence: The Code Project Open License (CPOL)      Bookmarked: 444   Downloaded: 920
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..
Algorithms & Recipes
Algorithms
Posted: 27 Sep 2011   Updated: 1 Feb 2012   Views: 31,210   Rating: 4.82/5    Votes: 8   Popularity: 4.26
Licence: The Code Project Open License (CPOL)      Bookmarked: 25   Downloaded: 0
ID3 Decision Tree Algorithm - Part 1 (Attribute Selection Basic Information)
Third Party Products and Tools
General
Posted: 29 Apr 2011   Updated: 29 Apr 2011   Views: 22,704   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 1,258
Exception logging using Elmah - Error Logging Modules and Handlers for ASP.NET
No blogs have been submitted.

Average tips rating: 4.41

Edit Controls
General
Posted: 22 Sep 2011   Updated: 22 Sep 2011   Views: 5,361   Rating: 4.43/5    Votes: 7   Popularity: 3.66
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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; ...
ASP.NET
General
Posted: 13 May 2011   Updated: 14 Jun 2011   Views: 20,210   Rating: 4.13/5    Votes: 7   Popularity: 3.24
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
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: 31,435   Rating: 4.95/5    Votes: 13   Popularity: 5.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 21   Downloaded: 0
How to send ASP.NET formatted exception details via email
C#
General
Posted: 12 Jun 2011   Updated: 12 Jun 2011   Views: 12,948   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
Caching uses with Proxy pattern in C#
Posted: 20 Jun 2011   Updated: 21 Jun 2011   Views: 16,669   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 0
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: 24,331   Rating: 4.71/5    Votes: 4   Popularity: 2.81
Licence: The Code Project Open License (CPOL)      Bookmarked: 8   Downloaded: 0
Some logical and arithmetic operations in C#
Posted: 28 Jun 2011   Updated: 29 Jun 2011   Views: 2,723   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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: 10,377   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
Parse key/value of a Generic dictionary in C#.
Posted: 29 Sep 2011   Updated: 30 Sep 2011   Views: 12,018   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
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 => { ...
Collections
General
Posted: 22 Sep 2011   Updated: 2 Oct 2011   Views: 4,686   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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) { ...
Programming Tips
General
Posted: 19 May 2011   Updated: 22 May 2011   Views: 27,312   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Posted: 30 May 2011   Updated: 7 Jun 2011   Views: 3,531   Rating: 3.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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: 8 Jun 2011   Updated: 8 Jun 2011   Views: 19,778   Rating: 4.71/5    Votes: 6   Popularity: 3.89
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Posted: 23 May 2011   Updated: 19 Jun 2011   Views: 16,325   Rating: 4.67/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Few extension methods of String concatenation in C#
Posted: 24 May 2011   Updated: 25 Jun 2011   Views: 11,152   Rating: 3.50/5    Votes: 2   Popularity: 0.90
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
A Generic Ternary Operator for value types and parameterless method
Posted: 4 Jul 2011   Updated: 4 Jul 2011   Views: 4,962   Rating: 4.50/5    Votes: 2   Popularity: 1.20
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Strategy of type selection in C#
Posted: 4 Jul 2011   Updated: 5 Jul 2011   Views: 17,389   Rating: 1.00/5    Votes: 2   Popularity: 0.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
Few extension methods of IEnumerable in C#
Posted: 25 Jul 2011   Updated: 25 Jul 2011   Views: 2,449   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
Another way,public static class ReverseStringExtension{ public static string Reverse(this string dataToRevese) { Func reverseFunc = (dataToFunc) => { StringBuilder reverseBuilder = new StringBuilder(); for (int index =...
Posted: 14 Sep 2011   Updated: 14 Sep 2011   Views: 3,685   Rating: 4.75/5    Votes: 5   Popularity: 3.30
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
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)); } ...
Posted: 1 Oct 2011   Updated: 2 Oct 2011   Views: 6,890   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 0
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: 3,036   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 4   Downloaded: 0
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: 12,817   Rating: 4.20/5    Votes: 5   Popularity: 2.80
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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...
String handling
General
Posted: 28 Jun 2011   Updated: 29 Jun 2011   Views: 2,350   Rating: 0.0 / 5    Votes: 0   Popularity: 0.0
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 0
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...
No reference articles have been posted.


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 18 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid