comparison Stocks/Stocks.Common/Core/ExtensionMethods.cs @ 0:e5d46bb6cdb0

Initial commit
author adminSH stevenhollidge@hotmail.com
date Mon, 20 Feb 2012 13:52:35 +0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e5d46bb6cdb0
1 using System;
2
3 namespace Stocks.Common.Core
4 {
5 public static class StringHelper
6 {
7 /// <summary>
8 /// Receives string and returns the string with its letters reversed.
9 /// </summary>
10 public static string Reverse(this string s)
11 {
12 if (s == null) return null;
13 char[] arr = s.ToCharArray();
14 Array.Reverse(arr);
15 return new string(arr);
16 }
17 }
18 }