blob: 682a20da7d2cd154cb56cbc95a8618ab5a305ec5 (
plain)
| ofs | hex dump | ascii |
|---|
| 0000 | 47 49 46 38 39 61 40 01 e2 00 e6 7f 00 7c 81 83 cd 4e 2a 02 8f b1 d8 72 55 c8 38 0f 00 85 ab de | GIF89a@......|...N*....rU.8..... |
| 0020 | 87 6d 5b b7 cd fe fe fe d1 eb f1 e6 e8 e8 f3 d3 ca 74 79 7b ca 40 19 d6 d8 d9 85 89 8b 6c 71 73 | .m[..............ty{.@.......lqs |
| 0040 | c5 c8 ca e8 a9 97 b5 b9 ba e4 f4 f7 eb b7 a8 79 7e 81 cd 49 24 93 98 9a 88 cb db ac da e5 a5 a9 | ...............y~..I$........... |
| 0060 | aa fa ea e5 f3 f4 f4 9d 76 6b d1 5a 39 39 a7 c2 17 98 b8 ef c6 ba 7c 83 85 22 9d bb 0a 93 b4 9f | ........vk.Z99........|.."...... |
| 0080 | a3 a5 bf c3 c5 e3 9a 84 72 c1 d4 f3 fa fc 8e 92 94 71 76 78 fd f4 f2 ba be bf cf 50 2c 7a 81 83 | ........r........qvx.......P,z.. |
| 00a0 | 00 7f a7 77 7c 7e f7 e0 da 2d a2 be cd 4c 28 cf 55 32 af b3 b5 cb 45 1f d0 d3 d4 99 9d 9f 65 6b | ...w|~...-...L(.U2....E.......ek |
| 00c0 | 6d 9a d3 e0 6f 74 76 be e2 eb fb f0 ed 89 8e 90 69 6e 70 cf 4e 2a a3 94 92 c6 b3 ae de e0 e1 d6 | m...otv.........inp.N*.......... |
| 00e0 | 48 1f 97 89 85 cd 4e 2c 4f 87 95 aa ae b0 ec ed ed 66 83 8c 76 8e 95 fd f9 f7 74 84 89 cb cd cf | H.....N,O........f..v.....t..... |
| 0100 | cd 4e 28 6b 8d 96 80 86 88 08 8e b1 d4 63 43 4c 99 ad 6e 9a a6 dc 52 2b 21 8d a9 d9 ca c6 b9 a9 | .N(k.........cCL..n...R+!....... |
| 0120 | a6 f5 f6 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Tango.Scripting.Editors
{
internal static class ExtensionMethodsNoName
{
public static String Remove(this String str, String pattern)
{
return Regex.Replace(str, pattern, "");
}
public static String GetFriendlyName(this Type type)
{
String name = type.Name;
if (type.IsGenericType)
{
List<String> args = new List<string>();
foreach (var lGenericArgument in type.GetGenericTypeDefinition().GetGenericArguments())
{
args.Add(lGenericArgument.Name);
}
String gArgs = String.Join(",", args);
name = $"{new String(type.Name.TakeWhile(x => x != '`').ToArray())}<{gArgs}>";
}
return name;
}
}
}
|