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