mirror of
https://gitee.com/csharpui/CPF.git
synced 2026-04-17 11:08:03 +08:00
初始化
This commit is contained in:
28
ConsoleApp1/InvokeST/ConvertMap/ConvertItem.cs
Normal file
28
ConsoleApp1/InvokeST/ConvertMap/ConvertItem.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Reflection.Emit;
|
||||
|
||||
namespace Raindrops.Shared.InvokeST
|
||||
{
|
||||
public class ConvertItem
|
||||
{
|
||||
public ConvertItem(Action<ILGenerator> action, int lostWeight = 0, int consumptionWeight = 0, int order = 0)
|
||||
{
|
||||
Order = order;
|
||||
Action = action;
|
||||
LostWeight = lostWeight;
|
||||
ConsumptionWeight = consumptionWeight;
|
||||
}
|
||||
public ConvertItem(OpCode opCode, int lostWeight = 0, int consumptionWeight = 0, int order = 0)
|
||||
{
|
||||
Order = order;
|
||||
OpCode = opCode;
|
||||
LostWeight = lostWeight;
|
||||
ConsumptionWeight = consumptionWeight;
|
||||
}
|
||||
internal int Order { get; set; }
|
||||
public int ConsumptionWeight { get; }
|
||||
public int LostWeight { get; }
|
||||
public Action<ILGenerator> Action { get; }
|
||||
public OpCode? OpCode { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user