November 2012 - Development Simply Put

A blog simplifies main concepts in IT development and provides tips, hints, advices and some re-usable code. "If you can't explain it simply, you don't understand it well enough" -Albert Einstein

  • Information Technology Institute

    ITI is a leading national institute established in 1993 by the Information and Decision Support Centre.

    Read More
  • Development Simply Put

    If you can't explain it simply, you don't understand it well enough.

    Read More
  • Integrant

    Based in the U.S. with offshore development centers in Jordan and Egypt, Integrant builds quality custom software since 1992. Our staff becomes an extension of your team to eliminate the risks of software development outsourcing and our processes...

    Read More
  • ITWorx

    ITWorx is a global software professional services organization. Headquartered in Egypt, the company offers Portals, Business Intelligence, Enterprise Application Integration and Application Development Outsourcing services to Global 2000 companies.

    Read More
  • Information Technology Institute

    ITI is a leading national institute established in 1993 by the Information and Decision Support Centre.

    Read More
  • Development Simply Put

    If you can't explain it simply, you don't understand it well enough.

    Read More

2012-11-07

How To Manage Your Resources

As you are going on with your career you stumble on many resources. These resources are very important and they are your assets. So, you should think about how to save and keep track of these resources in order to be able to reuse them when needed. What resources? People you know (colleagues, team members, family, friends, neighbors, bloggers, .......) Internet resources (emails, websites, blogs, communities, forums, ......) Personal work...

2012-11-06

How To Restore/Backup SQL Database From/To Remote Server

Did you ever need to restore a SQL database from a backup (.bak) file which is located on another remote server? Or let's be more general, did you ever need to access a file from SQL Server Management Studio File Explorer and this file was located on a remote server? Some may think that this could be achieved by creating a mapped network drive, on the machine having SQL server installed, which is pointing to the shared path in the other remote...

2012-11-04

[ExtensionMethods] Generics (T)

These are extension methods for "Generics (T)". Some are written by me and the rest are collected from other sources. Hope you find them useful :) using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using System.Reflection; namespace DevelopmentSimplyPut.ExtensionMethods.GenericsExtensionMethods { public static class GenericsExtensionMethods { /// <summary> /// Returns a bool indicating whether the object is nullable or not /// </summary> /// <typeparam name="T"></typeparam> ...

[ExtensionMethods] System.IConvertible

These are extension methods for "System.IConvertible" class. Some are written by me and the rest are collected from other sources. Hope you find them useful :) using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DevelopmentSimplyPut.ExtensionMethods.IConvertibleEM { public static class IConvertibleExtensionMethods { public static T ext_ConvertTo<T>(this IConvertible value) { object holder = Convert.ChangeType(value, typeof(T)); T result = default(T); if (null != holder) ...

[ExtensionMethods] System.Linq.IOrderedQueryable

These are extension methods for "System.Linq.IOrderedQueryable" class. Some are written by me and the rest are collected from other sources. Hope you find them useful :) using System.Text; namespace DevelopmentSimplyPut.ExtensionMethods.IOrderedQueryableEM { /// <summary> /// LinQ Extentensions /// </summary> public static class LinqExtensionMethods { /// <summary> /// Converts the Linq data to a commaseperated string including header. /// </summary> /// <param name="data">The data.</param> ...

[ExtensionMethods] System.DateTime

These are extension methods for "System.DateTime" class. Some are written by me and the rest are collected from other sources. Hope you find them useful :) using System; namespace DevelopmentSimplyPut.ExtensionMethods.DateTimeEM { /// <summary> /// DateTime Extensions /// </summary> public static class DateTimeExtensionMethods { /// <summary> /// Elapseds the time. /// </summary> /// <param name="datetime">The datetime.</param> /// <returns>TimeSpan</returns> public static TimeSpan...

2012-11-03

[ExtensionMethods] System.Web.UI.WebControls.WebControl

These are extension methods for "System.Web.UI.WebControls.WebControl" class. Some are written by me and the rest are collected from other sources. Hope you find them useful :) using System; using System.Linq; using System.Web.UI.WebControls; using System.Collections.Generic; namespace DevelopmentSimplyPut.ExtensionMethods.WebControlEM { public static class WebControlExtensionMethods { /// <summary> /// Adds a CSS class to a WebControl /// </summary> /// <param name="control">The WebControl</param> /// <param...

[ExtensionMethods] System.String

These are extension methods for "System.String" class. Some are written by me and the rest are collected from other sources. Hope you find them useful :) using System; using System.IO; using System.Linq; using System.Net.Mail; using System.Text.RegularExpressions; using System.Xml; using System.Xml.Serialization; namespace DevelopmentSimplyPut.ExtensionMethods.StringEM { public static class StringExtensionMethods { /// <summary> /// Repeats a string for a given number of times /// </summary> /// <param name="source">String</param> ...

Extension Methods!!!

"Extension methods" was first introduced in .NET 3.5 (C#3/VB9). It is a feature which lets you extend existing classes with new methods without the need to inherit from these classes. These classes are probably to be closed ones without access to their source code, otherwise, why extend the class when I can edit its code freely?!!! Writing an extension method is so similar to writing a static class which wraps or uses the class which I want to extend. Actually there is always a debate on whether to use static classes or use extension methods....