Ejemplo n.º 1
0
        protected override IEnumerable <byte[]> GetItems()
        {
            yield return(KeyId.ToByteArray());

            yield return(Key != null?Key.ToByteArray() : new byte[]
            {
            });
        }
Ejemplo n.º 2
0
        protected override IEnumerable <byte[]> GetItems()
        {
            yield return(RuleId.ToByteArray());

            yield return(BitConverter.GetBytes(Tag));

            yield return(KeyId.ToByteArray());

            yield return(Encoding.UTF8.GetBytes(Condition));

            yield return(BitConverter.GetBytes((int)Action));

            yield return(OwnerId.ToByteArray());
        }