类库说明文档
![]() | JHSerializationByteDeSerializeTtype Method |
将指定的流反序列化为对象图形,如果反序列化后值为 null,则返回 default(Ttype),异常将直接抛出
Namespace: DCSoft.Utility.IO
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
SyntaxC#
public static Ttype ByteDeSerialize<Ttype>( byte[] buffer )
Parameters
- buffer
- Type: SystemByte
要从其中反序列化对象图形的字节数组
Type Parameters
- Ttype
- 最终要得到的数据类型
Return Value
Type: Ttype返回反序列化后的指定类型的数据对象
Exceptions| Exception | Condition |
|---|---|
| ArgumentNullException | serializationStream 为 null |
| SerializationException | serializationStream 支持查找,但其长度为 0 |
| SecurityException | 调用方没有所要求的权限 |
See Also