Mercurial > silverbladetech
view Stocks/Stocks.Common/Core/ExtensionMethods.cs @ 19:09d18d6e5f40
airport work
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Thu, 15 Mar 2012 06:59:15 +0000 |
parents | e5d46bb6cdb0 |
children |
line wrap: on
line source
using System; namespace Stocks.Common.Core { public static class StringHelper { /// <summary> /// Receives string and returns the string with its letters reversed. /// </summary> public static string Reverse(this string s) { if (s == null) return null; char[] arr = s.ToCharArray(); Array.Reverse(arr); return new string(arr); } } }