You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-17Lines changed: 11 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -48,16 +48,14 @@ Apply the `LogWithName` attribute:
48
48
49
49
<!--snippet:LogWithName-->
50
50
<aid='snippet-logwithname'></a>
51
-
```csharp
52
-
usingDestructurama.Attributed;
53
-
...
51
+
```cs
54
52
publicclassPersonalData
55
53
{
56
54
[LogWithName("FullName")]
57
55
publicstring?Name { get; set; }
58
56
}
59
57
```
60
-
<sup><ahref='/test/Destructurama.Attributed.Tests/LogWithNameAttributedTests.cs#L37-L43'title='Snippet source file'>snippet source</a> | <ahref='#snippet-logwithname'title='Start of snippet'>anchor</a></sup>
58
+
<sup><ahref='/src/Destructurama.Attributed.Tests/LogWithNameAttributedTests.cs#L36-L42'title='Snippet source file'>snippetsource</a>|<ahref='#snippet-logwithname'title='Start of snippet'>anchor</a></sup>
61
59
<!--endSnippet-->
62
60
63
61
## 2. Ignoring a property
@@ -66,9 +64,7 @@ Apply the `NotLogged` attribute:
66
64
67
65
<!--snippet:LoginCommand-->
68
66
<aid='snippet-logincommand'></a>
69
-
```csharp
70
-
usingDestructurama.Attributed;
71
-
...
67
+
```cs
72
68
publicclassLoginCommand
73
69
{
74
70
publicstring?Username { get; set; }
@@ -77,18 +73,18 @@ public class LoginCommand
77
73
publicstring?Password { get; set; }
78
74
}
79
75
```
80
-
<sup><ahref='/test/Destructurama.Attributed.Tests/Snippets.cs#L29-L37'title='Snippet source file'>snippet source</a> | <ahref='#snippet-logincommand'title='Start of snippet'>anchor</a></sup>
76
+
<sup><ahref='/src/Destructurama.Attributed.Tests/Snippets.cs#L29-L37'title='Snippet source file'>snippetsource</a>|<ahref='#snippet-logincommand'title='Start of snippet'>anchor</a></sup>
0 commit comments