コード例 #1
0
        private static Expression ReadConstant(XmlExpressionReader reader)
        {
            Type   type = reader.ReadAttributeValue <Type>("type");
            object value;
            var    node = reader.Node;

            value = reader.ChangeType(node, reader.ReadInnerText(), type);
            return(Constant(value, type));
        }