We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e637a commit 26daf4fCopy full SHA for 26daf4f
1 file changed
Convert.cs
@@ -4,6 +4,16 @@ namespace CSSimpleFunctions
4
{
5
public class Convert
6
7
+ public static string Reverse(string str)
8
+ {
9
+ string temp = string.Empty;
10
+ for (int a = str.Length - 1; a > -1; a--)
11
12
+ temp += str.ElementAt(a);
13
+ }
14
+ return temp;
15
16
+
17
public static string ToBase64(string str)
18
19
return System.Convert.ToBase64String(Encoding.UTF8.GetBytes(str));
0 commit comments