web 2.0

Enum String Values Revised

In this article I’ll provide an improvement about my previous post talking about String Values from Enumerations. [More]

Views(1915)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Useful HttpResponse Extension Methods

In this article a few useful Extension Methods for HttpResponse. We often need to Write something to Response with New Line at the End or Switch Current Response to Ssl Mode. [More]

Views(2415)

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

ASP.NET

Useful Exception Extension Method – Get Full Stack Trace With Recursion

Tonight a useful Exception Extension Method in order to Get Full Stack Trace With Inner Exception Recursion. [More]

Views(2252)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Email Obfuscator Extension Method

I Quick Code Snippet in order to Obfuscate Email Addresses to prevent Web Crawlers from leech them ... [More]

Views(995)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

JSon Serialization Extensions

Today I'll talk about JSon Serialization and Deserialization using Extensions Methods. [More]

Views(942)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

SecureString Extension Methods

In this article i'll talk about SecureString class of System.Security. SecureString represents text that should be kept confidential and secured by DPAPI (Data Protection API). [More]

Views(1156)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Sb2.Extensions Release 1.2 Available on CodePlex

The release 1.2 of Sb2.Extensions is available on CodePlex now. [More]

Views(1070)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Creates a shallow copy of any Objects with Generic Extension Method

In this article I'll give you a useful Extension Method in order to create a shallow copy of any objects by calling Object.MemberwiseClone Method. [More]

Views(1370)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Sb2.Extensions Useful Method Extensions now on CodePlex

A little post in order to announce that i just hosted Sb2.Extensions on CodePlex, you can now follow the development advancement. [More]

Views(1314)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Generic FindControl<T> ASP.NET Method Extension

Here is a nice tips in order to FindControl inside a WebPage, WebControl or any type of Web Components that inherits from System.Web.UI.Control. [More]

Views(2509)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

ASP.NET | C#

The IsNullOrEmpty() Story with C#

Today i'm talking about the method IsNullOrEmpty that already exists on System.String class. We often need to use it on other types of objects like : StringBuilder All types of Collection that implementes ICollection Generic Collections Streams ... So in order to solve that issue here is a few set of IsNullOrEmpty Extension Method. [More]

Views(1613)

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

DeleteAllOnSubmit Custom Linq Extension without Query Data

Here is a quick Linq Extension in order to Delete all Data of a Table without Query All Data first. [More]

Views(2028)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

C# | Linq

Useful Method Extensions, Sb2.Extensions v.1.0 Released

Here is my first release of Sb2.Extensions : Cache Extensions,Collection Extensions,Compression Extensions,Image Extensions,Nullable Extensions,Reflection Extensions,Session Extensions,Text Extensions [More]

Views(1699)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Useful Cache and Session Method Extensions for ASP.NET

Hi, In the line of Method Extensions here is some Extensions for Cache and Session for ASP.NET. These uses the Cache and Session Compression of my previous post. Compression Extensions public static class CompressionExtensions { /// <summary> /// Compresses the specified data. ... [More]

Views(1861)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

ASP.NET | C#

Get Clean URLRewriting Friendly Url String Method Extension

Hi, For those how wants to get clean URLRewriting friendly Url String here is a sample of Method Extension that can solve your problem. /// <summary> /// Removes the illegal characters. /// </summary> /// <param name="values">The values.</param> /// <returns></re... [More]

Views(1987)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Useful Method Extensions - Get Bitmap from Bytes and Reverse

Hi, Today i'm posting another Useful Method Extensions about System.Drawing.Bitmap class. Theses are useful in order to retrieve and store Images to a Database for exemple. /// <summary> /// Return new Bitmap from Byte Array /// </summary> /// <param name="value">The value.</... [More]

Views(1305)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Useful Text Files Method Extensions (Part 2)

Hi, Here is the part 2 of Text Files Method Extensions with extensions that allow to Dump Strings to TextFiles   /// <summary> /// Dump String content to file. /// </summary> /// <param name="obj">The obj.</param> /// <param name="FilePath">The file path.</p... [More]

Views(1022)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

DirectoryInfo Extensions

For my first post, I wanted to add a useful method to the DirectoryInfo Class : the ability to delete all files from a folder. The same result can, of course, be achieved without using a method extension, but Method Extensions offer great flexibility. Thus, you can access this FileInfo method direct... [More]

Views(1102)

Currently rated 3.0 by 1 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Method Extensions Online Database

Hi ! Today i want to talk about a new project i'm planning and i want to know if anyone should be interrested in this project to become alive :) I'm planning to make an online Method Extensions Database on which anyone can post their own method extensions.   What do you think about that ?  ... [More]

Views(1674)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Useful Text Files Method Extensions

Hi, Today, i'll takling about Text files Method Extensions. Here is some useful extensions   class Program { static void Main(string[] args) { // Display File Contents FileInfo file = new FileInfo(@"F:\sample.txt"); Console.WriteLine(file.Contents()); ... [More]

Views(1550)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

C#

Technorati Profile