mirror of
https://github.com/yck1509/ConfuserEx
synced 2026-06-08 18:29:44 +00:00
26 lines
528 B
C#
26 lines
528 B
C#
using System;
|
|
using dnlib.DotNet;
|
|
|
|
namespace Confuser.Core.Project.Patterns {
|
|
/// <summary>
|
|
/// The NOT operator.
|
|
/// </summary>
|
|
public class NotOperator : PatternOperator {
|
|
internal const string OpName = "not";
|
|
|
|
/// <inheritdoc />
|
|
public override string Name {
|
|
get { return OpName; }
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override bool IsUnary {
|
|
get { return true; }
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override object Evaluate(IDnlibDef definition) {
|
|
return !(bool)OperandA.Evaluate(definition);
|
|
}
|
|
}
|
|
} |