Ejemplo n.º 1
0
        public static string SerializeToString(RuleExpression expression)
        {
            MemoryStream memoryStream = new MemoryStream();

            expression.Serialize(memoryStream);
            return(Convert.ToBase64String(memoryStream.GetBuffer(), 0, (int)memoryStream.Length));
        }
Ejemplo n.º 2
0
        public static byte[] SerializeToByteArray(RuleExpression expression)
        {
            MemoryStream memoryStream = new MemoryStream();

            expression.Serialize(memoryStream);
            return(memoryStream.ToArray());
        }