Skip to content

VDonC#ev

C{}d3

Categories

  • Abstract Data Structures
  • C# Algorithms
  • C# Snippets
  • Combinatorics
  • Java Algorithms
  • Java Snippets
  • Javascript Algorithms
  • PHP

Useful

  • Combinatorial Examples

MINI

Guess the number
Text 2 Array
Notepad

Recent Posts

  • Look And Say Sequence – PHP 7.4
  • Look and Say Sequence in PHP
  • Look and Say Sequence Generator – Javascript (ECMAscript 6)
  • Shortest Path In Graph – Dijkstra’s Algorithm – C# Implementation
  • Minimum Spanning Tree – Kruskal Algorithm – C# Implementation

Reverse string with single line of C# code.

using System;
using System.Linq;

static class ReverseString
{
    public static void Main()
    {
        string text = "!uoy htiw eb ecrof eht yaM";
        Console.WriteLine(string.Join("", text.Reverse()));
    }
}
Posted on October 10, 2015December 1, 2019Author vdonchevCategories C# SnippetsTags c#, Linq, reverse, reverse string

Post navigation

Previous Previous post: Replace multiply whitespaces with single space inside text using C#.
Next Next post: How to reverse String in Java
Proudly powered by WordPress