Türkçe - İngilizce Karakter Düzeltme

    public static class Extensions
    {
        public static string ToTRCevir(this string Expression)
        {
            Expression = Expression.Replace("Ð", "Ğ");
            Expression = Expression.Replace("ð", "ğ");
            Expression = Expression.Replace("Ý", "İ");
            Expression = Expression.Replace("Þ", "Ş");
            Expression = Expression.Replace("þ", "ş");
            Expression = Expression.Replace("ý", "ı");
            return new string(Expression.ToArray());
        }
        public static string ToENCevir(this string Expression)
        {
            Expression = Expression.Replace("Ğ", "Ð");
            Expression = Expression.Replace("ğ", "ð");
            Expression = Expression.Replace("İ", "Ý");
            Expression = Expression.Replace("Ş", "Þ");
            Expression = Expression.Replace("ş", "þ");
            Expression = Expression.Replace("ı", "ý");
            return new string(Expression.ToArray());
        }
    }

Bu makaleyi yararlı buldunuz mu?