Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lofcz authored Jan 8, 2025
1 parent a4108dc commit 1702e58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ Sometimes you might want to exclude certain fields & properties from cloning:
```csharp
private class TestPropsWithIgnored
{
public int A { get; set; } = 10;
[FastClonerIgnore] // <-- decorate such members with [FastClonerIgnore]
public string B { get; set; } = "My string";

public int A { get; set; } = 10;
}

TestPropsWithIgnored original = new TestPropsWithIgnored { A = 42, B = "Test value" };
Expand Down

0 comments on commit 1702e58

Please sign in to comment.