Exemple #1
0
        public static Message ToMessage(this IFly fly, bool sending)
        {
            var serializedArray = fly.Serialize();

            var modified =
                sending
                                        ? serializedArray.Skip(1)
                                        : serializedArray;

            var array = modified.Concat(new object[] { 0u }).ToArray();

            return(Message.Create(Type, array));
        }