Class DoubleExtensions
LINQ-inspired extension methods for
Inheritance
System.Object
DoubleExtensions
Namespace: X10D.Linq
Assembly: X10D.dll
Syntax
public static class DoubleExtensions : object
Methods
| Improve this Doc View SourceProduct(IEnumerable<Double>)
Computes the product of a sequence of
Declaration
public static double Product(this IEnumerable<double> source)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.Double> | source | A sequence of |
Returns
Type | Description |
---|---|
System.Double | The product the values in the sequence. |
Product<TSource>(IEnumerable<TSource>, Func<TSource, Double>)
Computes the product of a sequence of
Declaration
public static double Product<TSource>(this IEnumerable<TSource> source, Func<TSource, double> selector)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TSource> | source | A sequence of values that are used to calculate a product. |
Func<TSource, System.Double> | selector | A transform function to apply to each element. |
Returns
Type | Description |
---|---|
System.Double | The product of the projected values. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of |