Reversing a text is something that we come across most of the time in our processes.
Let’s see how to do it using a simple code…
String reversedString = stringtoBeReversed.AsEnumerable.Reverse.ToArray
Note:
1.Simply replace the “stringToBeReveresed” with your required “string”
2.It returns an array of char
and then
string.Join(“”,reverseString)
Note:
1.Here we are converting an array of char to string type
2.Here “” indicates the separator
Example
Implementation using UiPath :
Let us implement a workflow which takes “SharathRaju” as input and outputs the reverse of it i.e. “ujaRhtarahS”
Step 1:
Drag “Assign” activity into the design panel and pass a value to it.

Step 2:
Drag “Assign” activity into the design panel and obtain an array of char in reverse order by using the above-mentioned 1st code.

Step 3:
Drag “Message Box” activity into the design panel and obtain the reverse by using the above-mentioned 2nd code.

Step 4:
Final Output!!!

Click here to download the Source Code…
Hope it has helped you…
Like this:
Like Loading...
Related
Published by Sharath Raju
I am an engineer by profession and by heart :)
It's been 7+ years since I have been working with software development and robotic process automation.
I have implemented close to 80+ RPA processes in total by using Uipath.
It is so true that someone learns more by not reading something but by practicing the skill.
I have been trying to understand exactly where people who are just starting out their career struggle and understand the pain of struggling for hours trying to figure something out.I can help you with that.
Having a passion to share my piece of content, I have created step-by-step easy-to-digest courses.
My goal is to help you get ready for the future by learning new talents and becoming more productive by providing you with relevant and useful courses.
I'm still learning and exploring my field of work :)
Every feedback should be as valuable as you are to me, please feel free to reach out to me if you have any feedback, questions, or need any help.Thank You...
View all posts by Sharath Raju