Esempio n. 1
0
        public override byte[] GetData()
        {
            var data = new byte[16 + 16 + 16];

            Buffer.BlockCopy(QuestionId.ToOrderByteArray(), 0, data, 0, 16);
            Buffer.BlockCopy(ChoiceId.ToOrderByteArray(), 0, data, 16, 16);
            Buffer.BlockCopy(Id.ToOrderByteArray(), 0, data, 32, 16);

            return(data);
        }
Esempio n. 2
0
 private Choice(string choice)
 {
     this.Id      = new ChoiceId(Guid.NewGuid());
     this._choice = choice;
 }