23 lines
545 B
Plaintext
23 lines
545 B
Plaintext
![]() |
include::../why-dotnet.adoc[]
|
||
|
|
||
|
[source,csharp,diff-id=1,diff-type=noncompliant]
|
||
|
----
|
||
|
private readonly ILogger myLogger; // Noncompliant
|
||
|
|
||
|
public ILogger MyLogger { get; set; } // Noncompliant
|
||
|
----
|
||
|
|
||
|
[source,csharp,diff-id=1,diff-type=compliant]
|
||
|
----
|
||
|
private readonly ILogger logger; // Compliant
|
||
|
|
||
|
public ILogger Logger { get; set; } // Compliant
|
||
|
----
|
||
|
|
||
|
== Resources
|
||
|
|
||
|
=== Documentation
|
||
|
|
||
|
* Microsoft Learn - https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions[Coding conventions]
|
||
|
|
||
|
include::../rspecator.adoc[]
|