프로젝트
GitHub에서 보기
ReubenBond/DeepCopy
소개
Simple & efficient library for deep copying .NET objects
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDeepCopy
Simple & efficient library for deep copying .NET objects
Described in this blog post: https://reubenbond.github.io/posts/codegen-2-il-boogaloo
Installation:
Install via NuGet:
PM> Install-Package DeepCopy
Usage:
// Add a using directive for DeepCopy.
var poco = new Poco();
var original = new[] { poco, poco };
var result = DeepCopier.Copy(original);
// The result is a copy of the original.
Assert.NotSame(original, result);
// Because both elements in the original array point to the same object,
// both elements in the copied array also point to the same object.
Assert.Same(result[0], result[1]);
Optionally, classes can be marked using the [Immutable] attribute to tell DeepCopy to skip copying them and return them unmodified.
Object can also be wrapped in Immutable<T> using Immutable.Create(value).
The majority of this project was adapted from dotnet/orleans.
PR's welcome!
관련 프로젝트 살펴보기
불러오는 중…