forked from yck1509/ConfuserEx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
75 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using dnlib.DotNet; | ||
|
||
namespace Confuser.Core.Project.Patterns | ||
{ | ||
/// <summary> | ||
/// A function that compare the full name of definition. | ||
/// </summary> | ||
public class FullNameFunction : PatternFunction | ||
{ | ||
internal const string FnName = "full-name"; | ||
/// <inheritdoc/> | ||
public override string Name { get { return FnName; } } | ||
|
||
/// <inheritdoc/> | ||
public override int ArgumentCount { get { return 1; } } | ||
|
||
/// <inheritdoc/> | ||
public override object Evaluate(IDnlibDef definition) | ||
{ | ||
object name = Arguments[0].Evaluate(definition); | ||
return definition.FullName == name.ToString(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project baseDir="." outputDir="Confused" xmlns="http://confuser.codeplex.com"> | ||
<rule preset="none" pattern=".*"> | ||
<protection id="rename"> | ||
<argument name="mode" value="unicode" /> | ||
</protection> | ||
<protection id="anti ildasm" /> | ||
<rule preset="none" pattern="true"> | ||
<protection id="anti debug" /> | ||
<protection id="rename"> | ||
<argument name="mode" value="unicode" /> | ||
</protection> | ||
<protection id="ref proxy" /> | ||
<protection id="anti dump" /> | ||
<protection id="anti ildasm" /> | ||
<protection id="anti tamper" /> | ||
<protection id="constants" /> | ||
<protection id="ctrl flow" /> | ||
<protection id="invalid metadata" /> | ||
<protection id="ref proxy" /> | ||
<protection id="rename" /> | ||
<protection id="resources" /> | ||
</rule> | ||
<rule preset="none" pattern="PaintDotNet.Menus\..*Menu(|Item|Base)$"> | ||
<rule preset="none" pattern="namespace('PaintDotNet.Menus') and match-name('Menu(|Item|Base)$')"> | ||
<protection id="rename" action="remove" /> | ||
</rule> | ||
<rule preset="none" pattern="PaintDotNet.Menus\..*Menu::menu.*$"> | ||
<rule preset="none" pattern="namespace('PaintDotNet.Menus') and match-type-name('Menu$') and match-name('^menu')"> | ||
<protection id="rename" action="remove" /> | ||
</rule> | ||
<rule preset="none" pattern="PaintDotNet.Tools\..*Tool(|Base)$"> | ||
<rule preset="none" pattern="namespace('PaintDotNet.Tools') and match-name('Tool(|Base)$')"> | ||
<protection id="rename" action="remove" /> | ||
</rule> | ||
<rule preset="none" pattern="PaintDotNet.IndirectUI\..*PropertyControl.*\(\)$"> | ||
<rule preset="none" pattern="namespace('PaintDotNet.IndirectUI') and match-type-name('PropertyControl') and (member-type('method') or member-type('property'))"> | ||
<protection id="rename" action="remove" /> | ||
</rule> | ||
<module path="PaintDotNet.exe" /> | ||
<module path="PaintDotNet.Base.dll" /> | ||
<module path="PaintDotNet.Core.dll" /> | ||
<module path="PaintDotNet.Data.dll" /> | ||
<module path="PaintDotNet.Effects.dll" /> | ||
<module path="PaintDotNet.exe" /> | ||
<module path="PaintDotNet.Resources.dll" /> | ||
<module path="PaintDotNet.SystemLayer.dll" /> | ||
</project> |