mirror of
https://github.com/0xd4d/de4dot
synced 2026-06-08 10:09:02 +00:00
Remove non-used code and add a Count property
This commit is contained in:
+2
-15
@@ -23,25 +23,12 @@ using dot10.DotNet.MD;
|
||||
using dot10.DotNet;
|
||||
|
||||
namespace de4dot.blocks {
|
||||
public interface IStringDecrypter {
|
||||
string decrypt(uint token);
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class DumpedMethods {
|
||||
Dictionary<uint, DumpedMethod> methods = new Dictionary<uint, DumpedMethod>();
|
||||
IStringDecrypter stringDecrypter = new NoStringDecrypter();
|
||||
|
||||
[Serializable]
|
||||
class NoStringDecrypter : IStringDecrypter {
|
||||
public string decrypt(uint token) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public IStringDecrypter StringDecrypter {
|
||||
get { return stringDecrypter; }
|
||||
set { stringDecrypter = value; }
|
||||
public int Count {
|
||||
get { return methods.Count; }
|
||||
}
|
||||
|
||||
public void add(uint token, DumpedMethod info) {
|
||||
|
||||
Reference in New Issue
Block a user