obfuz/Editor/ObfusPasses/SymbolObfus/NameMaker.cs

27 lines
605 B
C#
Raw Normal View History

2025-04-05 21:47:28 +08:00
using dnlib.DotNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
2025-05-04 19:55:10 +08:00
namespace Obfuz.ObfusPasses.SymbolObfus
2025-04-05 21:47:28 +08:00
{
2025-04-16 13:50:58 +08:00
public class NameMaker : NameMakerBase
2025-04-05 21:47:28 +08:00
{
private readonly string _namePrefix;
2025-04-15 18:30:17 +08:00
private readonly List<string> _wordSet;
public NameMaker(string namePrefix, List<string> wordSet)
2025-04-15 18:30:17 +08:00
{
_namePrefix = namePrefix;
2025-04-15 18:30:17 +08:00
_wordSet = wordSet;
}
protected override INameScope CreateNameScope()
2025-04-05 21:47:28 +08:00
{
return new NameScope(_namePrefix, _wordSet);
2025-04-05 21:47:28 +08:00
}
}
}