Cuemon .NET Framework
FromConvertibles<T>(IEnumerable<T>) Method

A sequence of System.IConvertible values to convert.
Converts the specified sequence of values to an array of bytes.
Syntax
'Declaration
 
Public Overloads Shared Function FromConvertibles(Of T As {New, IConvertible, Struct})( _
   ByVal values As IEnumerable(Of T) _
) As Byte()
public static byte[] FromConvertibles<T>( 
   IEnumerable<T> values
)
where T: new(), IConvertible, struct

Parameters

values
A sequence of System.IConvertible values to convert.

Type Parameters

T

Return Value

An array of bytes equivalent to the sequence of the values.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeExceptionvalues is outside the range of allowed types.
Allowed types are: System.Boolean, System.Char, System.Double, System.Int16, System.Int32, System.UInt16, System.UInt32 and System.UInt64.
System.ArgumentNullExceptionvalues is null.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ByteConverter Class
ByteConverter Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback