view MetroWpf/Stocks.Common/Core/ExtensionMethods.cs @ 87:8bb84cc9ba3f

Clear out rubbish
author stevenhollidge <stevenhollidge@hotmail.com>
date Thu, 26 Apr 2012 13:23:35 +0100
parents 6109bc268b90
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);
    }
  }
}