public MessageAttribute(Opcodes[] opcodes, Consumers consumer = Consumers.None) { this.Opcodes = new List<Opcodes>(); this.Consumer = consumer; foreach (var opcode in opcodes) { this.Opcodes.Add(opcode); } }
public MessageAttribute(Opcodes opcode, Consumers consumer = Consumers.None) { this.Opcodes = new List<Opcodes> {opcode}; this.Consumer = consumer; }