Class Int64Extensions
LINQ-inspired extension methods for
Inheritance
Namespace: X10D.Linq
Assembly: X10D.dll
Syntax
public static class Int64Extensions : object
Methods
| Improve this Doc View SourceProduct(IEnumerable<Int64>)
Computes the product of a sequence of
Declaration
public static long Product(this IEnumerable<long> source)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.Int64> | source | A sequence of |
Returns
Type | Description |
---|---|
System.Int64 | The product the values in the sequence. |
Product(IEnumerable<UInt64>)
Computes the product of a sequence of
Declaration
public static ulong Product(this IEnumerable<ulong> source)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.UInt64> | source | A sequence of |
Returns
Type | Description |
---|---|
System.UInt64 | The product the values in the sequence. |
Product<TSource>(IEnumerable<TSource>, Func<TSource, Int64>)
Computes the product of a sequence of
Declaration
public static long Product<TSource>(this IEnumerable<TSource> source, Func<TSource, long> selector)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TSource> | source | A sequence of values that are used to calculate a product. |
Func<TSource, System.Int64> | selector | A transform function to apply to each element. |
Returns
Type | Description |
---|---|
System.Int64 | The product of the projected values. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of |
Product<TSource>(IEnumerable<TSource>, Func<TSource, UInt64>)
Computes the product of a sequence of
Declaration
public static ulong Product<TSource>(this IEnumerable<TSource> source, Func<TSource, ulong> selector)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TSource> | source | A sequence of values that are used to calculate a product. |
Func<TSource, System.UInt64> | selector | A transform function to apply to each element. |
Returns
Type | Description |
---|---|
System.UInt64 | The product of the projected values. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of |
RangeTo(Int64, Int64)
Returns an enumerable sequence of 64-bit integers ranging from the current value to a specified value.
Declaration
public static IEnumerable<long> RangeTo(this long value, long end)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | The starting value of the sequence. |
System.Int64 | end | The ending value of the sequence. |
Returns
Type | Description |
---|---|
IEnumerable<System.Int64> | An enumerable collection of 64-bit integers, ranging from |