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
+30-23Lines changed: 30 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Apply the `LogWithName` attribute:
33
33
publicclassPersonalData
34
34
{
35
35
[LogWithName("FullName")]
36
-
publicstringName { get; set; }
36
+
publicstring?Name { get; set; }
37
37
}
38
38
```
39
39
<sup><ahref='/test/Destructurama.Attributed.Tests/LogWithNameAttributedTests.cs#L37-L43'title='Snippet source file'>snippetsource</a>|<ahref='#snippet-logwithname'title='Start of snippet'>anchor</a></sup>
@@ -49,10 +49,10 @@ Apply the `NotLogged` attribute:
49
49
```cs
50
50
publicclassLoginCommand
51
51
{
52
-
publicstringUsername { get; set; }
52
+
publicstring?Username { get; set; }
53
53
54
54
[NotLogged]
55
-
publicstringPassword { get; set; }
55
+
publicstring?Password { get; set; }
56
56
}
57
57
```
58
58
<sup><ahref='/test/Destructurama.Attributed.Tests/Snippets.cs#L29-L37'title='Snippet source file'>snippetsource</a>|<ahref='#snippet-logincommand'title='Start of snippet'>anchor</a></sup>
@@ -98,106 +98,112 @@ public class CustomizedMaskedLogs
98
98
/// 123456789 results in "***"
99
99
/// </summary>
100
100
[LogMasked]
101
-
publicstringDefaultMasked { get; set; }
101
+
publicstring?DefaultMasked { get; set; }
102
102
103
103
/// <summary>
104
104
/// [123456789,123456789,123456789] results in [***,***,***]
<sup><ahref='/test/Destructurama.Attributed.Tests/MaskedAttributeTests.cs#L9-L116'title='Snippet source file'>snippet source</a> | <ahref='#snippet-customizedmaskedlogs'title='Start of snippet'>anchor</a></sup>
206
+
<sup><ahref='/test/Destructurama.Attributed.Tests/MaskedAttributeTests.cs#L9-L122'title='Snippet source file'>snippet source</a> | <ahref='#snippet-customizedmaskedlogs'title='Start of snippet'>anchor</a></sup>
201
207
<!-- endSnippet -->
202
208
203
209
@@ -226,6 +232,7 @@ __Constructor arguments__:
226
232
227
233
__Available properties__:
228
234
-**Options:** The [RegexOptions](https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regexoptions?view=netcore-3.1) that will be applied. Defaults to __RegexOptions.None__
235
+
-**Timeout:** A time-out interval to evaluate regular expression. Defaults to __Regex.InfiniteMatchTimeout__
229
236
230
237
231
238
### Examples
@@ -241,13 +248,13 @@ public class WithRegex
241
248
/// 123|456|789 results in "***|456|789"
242
249
/// </summary>
243
250
[LogReplaced(RegexWithVerticalBars, "***|$2|$3")]
244
-
publicstringRegexReplaceFirst { get; set; }
251
+
publicstring?RegexReplaceFirst { get; set; }
245
252
246
253
/// <summary>
247
254
/// 123|456|789 results in "123|***|789"
248
255
/// </summary>
249
256
[LogReplaced(RegexWithVerticalBars, "$1|***|$3")]
250
-
publicstringRegexReplaceSecond { get; set; }
257
+
publicstring?RegexReplaceSecond { get; set; }
251
258
}
252
259
```
253
260
<sup><ahref='/test/Destructurama.Attributed.Tests/Snippets.cs#L6-L25'title='Snippet source file'>snippet source</a> | <ahref='#snippet-withregex'title='Start of snippet'>anchor</a></sup>
0 commit comments