SkillAgentSearch skills...

DeepClone

基于Natasha的深度克隆库

Install / Use

/learn @night-moon-studio/DeepClone
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<p align="center"> <span>中文</span> | <a href="https://github.com/night-moon-studio/deepclone/tree/master/lang/english">English</a> </p>

DeepClone

Member project of Night Moon Studio NuGet Badge GitHub repo size Gitter Codecov Badge GitHub license

<br/>

持续构建(CI Build Status)

| CI Platform | Build Server | Master Build | Master Test | |--------- |------------- |---------| --------| | Travis | Linux/OSX | Build status | | | AppVeyor | Windows/Linux |Build status|Build status| | Azure | Windows |Build Status|Azure DevOps tests | | Azure | Linux |Build Status|Azure DevOps tests | | Azure | Mac |Build Status|Azure DevOps tests |

<br/>

项目简介:

此项目为Natasha的衍生项目,为用户提供高性能的深度克隆。

<br/>

使用方法(User Api):

<br/>
  • 引入 动态构件库: NMS.DeepClone

  • 初始化: NatashaInitializer.InitializeAndPreheating();

  • 敲代码

<br/>

//非object类型使用
CloneOperator.Clone(instance);

//object类型使用
ObjectCloneOperator.Clone(obj);

//readonly 字段会根据构造函数中参数名,或者通过注解进行匹配

public class A()
{

   public A(string name,int age){ StuName = name; Age = age; }

   [NeedCtor("name")]
   public readonly StuName;

   [NeedCtor]
   public readonly Age;

}

发布计划:

  • 2019-08-20 : 发布v1.0.0.0, 高性能动态深度克隆库。
<br/>
<br/>

License

FOSSA Status

Related Skills

View on GitHub
GitHub Stars34
CategoryDevelopment
Updated3y ago
Forks10

Languages

C#

Security Score

70/100

Audited on Dec 29, 2022

No findings