view MetroWpf/Stocks.Common/Core/ExtensionMethods.cs @ 33:f3a0641c1586

bat files added to Messaging solution
author adminsh@apollo
date Thu, 22 Mar 2012 08:11:42 +0000
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);
    }
  }
}