Ejemplo n.º 1
0
        /// <exception cref="NotSupportedException" />
        /// <exception cref="InvalidOperationException" />
        public TProperty Min <TProperty>(Expression <Func <T, TProperty> > property)
        {
            if (property == null)
            {
                throw new ArgumentNullException(nameof(property));
            }

            IComparsionIndex <T> index = FindComparsionIndex(property.Body);

            return((TProperty)index.Min());
        }