Class UserDefinedLogicTransform
- Namespace
- ICSharpCode.Decompiler.IL.Transforms
- Assembly
- ICSharpCode.Decompiler.dll
public class UserDefinedLogicTransform : IStatementTransform
- Inheritance
-
UserDefinedLogicTransform
- Implements
- Inherited Members
Constructors
UserDefinedLogicTransform()
public UserDefinedLogicTransform()
Methods
Transform(ILInstruction, ILInstruction, ILInstruction)
if (call op_False(ldloc lhsVar)) ldloc lhsVar else call op_BitwiseAnd(ldloc lhsVar, rhsInst)
-> user.logic op_BitwiseAnd(ldloc lhsVar, rhsInst) or if (call op_True(ldloc lhsVar)) ldloc lhsVar else call op_BitwiseOr(ldloc lhsVar, rhsInst) -> user.logic op_BitwiseOr(ldloc lhsVar, rhsInst)
public static ILInstruction Transform(ILInstruction condition, ILInstruction trueInst, ILInstruction falseInst)
Parameters
condition
ILInstructiontrueInst
ILInstructionfalseInst
ILInstruction
Returns
TransformDynamic(ILInstruction, ILInstruction, ILInstruction)
public static ILInstruction TransformDynamic(ILInstruction condition, ILInstruction trueInst, ILInstruction falseInst)
Parameters
condition
ILInstructiontrueInst
ILInstructionfalseInst
ILInstruction