Skip to content

Commit 851e2cd

Browse files
authored
Update README.md
1 parent a6cfc00 commit 851e2cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ TestPropsWithIgnored clone = original.DeepClone(); // clone.B is null (default v
5454

5555
You might also need to exclude certain types from being cloned ever. To do that, put offending types on a blacklist:
5656
```cs
57-
FastCloner.IgnoreType(typeof(PropertyChangedEventHandler)); // or FastCloner.IgnoreTypes([ .. ])
57+
FastCloner.FastCloner.IgnoreType(typeof(PropertyChangedEventHandler)); // or FastCloner.FastCloner.IgnoreTypes([ .. ])
5858
```
5959

6060
If needed, the types can be removed from the blacklist later:
6161
```cs
6262
// note: doing this invalidates precompiled expressions and clears the cache,
6363
// performance will be negatively affected until the cache is repopulated
64-
FastCloner.ClearIgnoredTypes();
64+
FastCloner.FastCloner.ClearIgnoredTypes();
6565
```
6666

6767
Apart from deep cloning, FastCloner supports shallow cloning and deep cloning _to_ target:

0 commit comments

Comments
 (0)