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); }
private Choice(string choice) { this.Id = new ChoiceId(Guid.NewGuid()); this._choice = choice; }