fastCSharp/setup/cSharp/serialize.cs
(开头部分) 453KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Reflection;
using System.IO;
using fastCSharp.reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Collections;
using fastCSharp.threading;
namespace fastCSharp.setup.cSharp
{
/// <summary>
/// 序列化代码生成自定义属性
/// </summary>
public sealed partial class serialize : serializeBase
{
/// <summary>
/// 默认空属性
/// </summary>
internal static readonly serialize SerializeAttribute = new serialize();
/// <summary>
/// 默认空属性
/// </summary>
internal static readonly serialize BaseSerializeAttribute = new serialize { IsReferenceMember = false, IsBaseSerialize = true };
/// <summary>
/// 序列化转换泛型标识
/// </summary>
public interface ISerializeGeneric { }
/// <summary>
/// 序列化接口
/// </summary>
public interface ISerializeBase
{
/// <summary>
/// 反序列化
/// </summary>
/// <param name="data">序列化数据</param>
bool DeSerialize(subArray<byte> data);
/// <summary>
/// 对象序列化
/// </summary>
/// <param name="stream">数据流</param>
void Serialize(unmanagedStream stream);
}
/// <summary>
/// 序列化接口
/// </summary>
public interface ISerialize : ISerializeBase
{
/// <summary>
/// 对象序列化
/// </summary>
/// <returns>序列化数据</returns>
byte[] Serialize();
/// <summary>
/// 对象序列化
/// </summary>
/// <param name="serializer">对象序列化器</param>
void Serialize(unmanagedStreamSerializer serializer);
后面还有 5395+ 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
