~ruther/NosTale-Gfless

ref: 12348eac854c948052446324119907c29df33997 NosTale-Gfless/NostaleAuth/Extensions/StringExtensions.cs -rw-r--r-- 251 bytes
12348eac — František Boháček chore: update to .NET standard 2.1 and .NET Core 3.1 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
using System;
using System.Linq;

namespace NostaleAuth.Extensions
{
    public static class StringExtensions
    {
        public static string ToHex(this string input)
            => String.Concat(input.Select(x => ((int)x).ToString("X2")));
    }
}