diff --git a/README.md b/README.md
index 9860548..ce9b1b7 100644
--- a/README.md
+++ b/README.md
@@ -48,16 +48,14 @@ Apply the `LogWithName` attribute:
-```csharp
-using Destructurama.Attributed;
-...
+```cs
public class PersonalData
{
[LogWithName("FullName")]
public string? Name { get; set; }
}
```
-snippet source | anchor
+snippet source | anchor
## 2. Ignoring a property
@@ -66,9 +64,7 @@ Apply the `NotLogged` attribute:
-```csharp
-using Destructurama.Attributed;
-...
+```cs
public class LoginCommand
{
public string? Username { get; set; }
@@ -77,18 +73,18 @@ public class LoginCommand
public string? Password { get; set; }
}
```
-snippet source | anchor
+snippet source | anchor
When the object is passed using `{@...}` syntax the attributes will be consulted.
-```csharp
+```cs
var command = new LoginCommand { Username = "logged", Password = "not logged" };
-log.Information("Logging in {@Command}", command);
+_log.Information("Logging in {@Command}", command);
```
-snippet source | anchor
+snippet source | anchor
## 3. Ignoring a property if it has default value
@@ -164,9 +160,7 @@ Note that masking also works for properties of type `IEnumerable` or der
-```csharp
-using Destructurama.Attributed;
-...
+```cs
public class CustomizedMaskedLogs
{
///
@@ -284,7 +278,7 @@ public class CustomizedMaskedLogs
public string? ShowFirstAndLastThreeAndCustomMaskInTheMiddlePreservedLengthIgnored { get; set; }
}
```
-snippet source | anchor
+snippet source | anchor
## 7. Masking a string property with regular expressions
@@ -319,7 +313,7 @@ __Available properties__:
-```csharp
+```cs
public class WithRegex
{
private const string REGEX_WITH_VERTICAL_BARS = @"([a-zA-Z0-9]+)\|([a-zA-Z0-9]+)\|([a-zA-Z0-9]+)";
@@ -337,5 +331,5 @@ public class WithRegex
public string? RegexReplaceSecond { get; set; }
}
```
-snippet source | anchor
+snippet source | anchor
diff --git a/mdsnippets.json b/mdsnippets.json
index a00a16b..8310849 100644
--- a/mdsnippets.json
+++ b/mdsnippets.json
@@ -1,5 +1,5 @@
-{
+{
"$schema": "https://raw.githubusercontent.com/SimonCropp/MarkdownSnippets/master/schema.json",
- "MaxWidth": 100,
+ "MaxWidth": 110,
"Convention": "InPlaceOverwrite"
}
\ No newline at end of file
diff --git a/src/Destructurama.Attributed.Tests/Destructurama.Attributed.Tests.csproj b/src/Destructurama.Attributed.Tests/Destructurama.Attributed.Tests.csproj
index 4b05d66..37bed74 100644
--- a/src/Destructurama.Attributed.Tests/Destructurama.Attributed.Tests.csproj
+++ b/src/Destructurama.Attributed.Tests/Destructurama.Attributed.Tests.csproj
@@ -17,7 +17,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+