Skip to content

Commit c6059ba

Browse files
committed
rename attr
1 parent 15d994f commit c6059ba

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

FastCloner.Tests/SpecialCaseTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ private class TestPropsWithIgnored
275275
{
276276
public int A { get; set; } = 10;
277277

278-
[DeepCloneIgnore]
278+
[FastClonerIgnore]
279279
public string B { get; set; } = "My string";
280280
}
281281

@@ -386,13 +386,13 @@ private class TestAutoPropsWithIgnored
386386
{
387387
public int A { get; set; } = 10;
388388

389-
[DeepCloneIgnore]
389+
[FastClonerIgnore]
390390
public string B { get; private set; } = "My string";
391391

392392
public int C => A * 2;
393393

394394
private int _d;
395-
[DeepCloneIgnore]
395+
[FastClonerIgnore]
396396
public int D
397397
{
398398
get => _d;

FastCloner/Code/FastClonerExprGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal static class FastClonerExprGenerator
2222

2323
private static bool MemberIsIgnored(MemberInfo memberInfo)
2424
{
25-
DeepCloneIgnoreAttribute? attribute = memberInfo.GetCustomAttribute<DeepCloneIgnoreAttribute>();
25+
FastClonerIgnoreAttribute? attribute = memberInfo.GetCustomAttribute<FastClonerIgnoreAttribute>();
2626
return attribute?.Ignored ?? false;
2727
}
2828

@@ -207,7 +207,7 @@ private static List<MemberInfo> GetAllMembers(Type type)
207207

208208
if (member is PropertyInfo piLocal)
209209
{
210-
DeepCloneIgnoreAttribute? attribute = piLocal.GetCustomAttribute<DeepCloneIgnoreAttribute>();
210+
FastClonerIgnoreAttribute? attribute = piLocal.GetCustomAttribute<FastClonerIgnoreAttribute>();
211211

212212
if (attribute?.Ignored ?? false)
213213
{

FastCloner/Code/DeepCloneIgnoreAttribute.cs renamed to FastCloner/Code/FastClonerIgnoreAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace FastCloner.Code;
44
/// Marks given field / property as ignored, effectively assigning a default value when cloning such entity.
55
/// </summary>
66
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
7-
public class DeepCloneIgnoreAttribute(bool ignored = true) : Attribute
7+
public class FastClonerIgnoreAttribute(bool ignored = true) : Attribute
88
{
99
/// <summary>
1010
/// Gets whether the member should be ignored during cloning.

FastCloner/FastCloner.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</PropertyGroup>
2323

2424
<PropertyGroup>
25-
<Version>3.1.5</Version>
25+
<Version>3.1.6</Version>
2626

2727
<Title>FastCloner</Title>
2828
<Description>Fast deep cloning library for .NET 8+. Supports both deep and shallow cloning. Extensively tested, focused on performance and stability even on complicated object graphs.</Description>

0 commit comments

Comments
 (0)