using System;
using dnlib.DotNet;
namespace Confuser.Core.Project.Patterns {
///
/// The NOT operator.
///
public class NotOperator : PatternOperator {
internal const string OpName = "not";
///
public override string Name {
get { return OpName; }
}
///
public override bool IsUnary {
get { return true; }
}
///
public override object Evaluate(IDnlibDef definition) {
return !(bool)OperandA.Evaluate(definition);
}
}
}