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