Property assigned to itself (CA2245)
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Key dotnet.codequality.property-self-assignment · Severity warning · Category codequality
Microsoft analyzer CA2245. Flags a property assigned its own value - almost always a typo for another member or a parameter.
Incorrect
Section titled “Incorrect”public Order(decimal total){ Total = Total;}Correct
Section titled “Correct”public Order(decimal total){ Total = total;}