protected override IEnumerable <byte[]> GetItems()
        {
            yield return(KeyId.ToByteArray());

            yield return(Key != null?Key.ToByteArray() : new byte[]
            {
            });
        }
        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());
        }