Mercurial > silverbladetech
view Stocks/Stocks.Common/Core/ExtensionMethods.cs @ 40:64c89891d7b6
Added tag MetroWPF CTP v0.1 for changeset 4b8b38d17d24
author | adminsh@apollo |
---|---|
date | Tue, 03 Apr 2012 16:46:48 +0100 |
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); } } }