Cuemon .NET Framework
FromBytes<T> Method (ConvertibleConverter)

The type of the expected return value after conversion.
The value to convert into an System.IConvertible.
Returns an System.IConvertible primitive converted from the specified array value of bytes.
Syntax
'Declaration
 
Public Shared Function FromBytes(Of T As {New, IConvertible, Struct})( _
   ByVal value() As Byte _
) As T
public static T FromBytes<T>( 
   byte[] value
)
where T: new(), IConvertible, struct

Parameters

value
The value to convert into an System.IConvertible.

Type Parameters

T
The type of the expected return value after conversion.

Return Value

An System.IConvertible primitive formed by n-bytes beginning at 0.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionvalue is null.
TypeArgumentExceptionT 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.
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

ConvertibleConverter Class
ConvertibleConverter Members

 

 


| 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