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