AsmResolver.Net.Msil.MsilInstruction.Create C# (CSharp) Method

Create() public static method

public static Create ( MsilOpCode code ) : MsilInstruction
code MsilOpCode
return MsilInstruction
        public static MsilInstruction Create(MsilOpCode code)
        {
            if (code.OperandType != MsilOperandType.InlineNone)
                throw new ArgumentException("Opcode requires an operand.", "code");
            return new MsilInstruction(0, code, null);
        }

Same methods

MsilInstruction::Create ( MsilOpCode code, IList operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, IMemberReference operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, MsilInstruction instruction ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, ParameterSignature operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, StandAloneSignature operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, VariableSignature operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, double operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, float operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, int operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, long operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, sbyte operand ) : MsilInstruction
MsilInstruction::Create ( MsilOpCode code, string operand ) : MsilInstruction