Exemplo n.º 1
0
        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);
            }            
        }
Exemplo n.º 2
0
 public MessageAttribute(Opcodes opcode, Consumers consumer = Consumers.None)
 {
     this.Opcodes = new List<Opcodes> {opcode};
     this.Consumer = consumer;
 }