Skip to content

Commit 008cbf8

Browse files
authored
Update ca1872.md (#43739)
1 parent 1e5a713 commit 008cbf8

File tree

1 file changed

+4
-4
lines changed
  • docs/fundamentals/code-analysis/quality-rules

1 file changed

+4
-4
lines changed

docs/fundamentals/code-analysis/quality-rules/ca1872.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ class HelloWorldEncoder
9090

9191
public string Encode()
9292
{
93-
return Convert.ToHexString(data);
93+
return Convert.ToHexString(_data);
9494
}
9595

9696
public string EncodeToLower()
9797
{
98-
return Convert.ToHexStringLower(data);
98+
return Convert.ToHexStringLower(_data);
9999
}
100100
}
101101
```
@@ -108,11 +108,11 @@ Class HelloWorldEncoder
108108
Private ReadOnly _data As Byte() = Encoding.ASCII.GetBytes("Hello World")
109109

110110
Public Function Encode() As String
111-
Return Convert.ToHexString(data)
111+
Return Convert.ToHexString(_data)
112112
End Function
113113

114114
Public Function EncodeToLower() As String
115-
Return Convert.ToHexStringLower(data)
115+
Return Convert.ToHexStringLower(_data)
116116
End Function
117117
End Class
118118
```

0 commit comments

Comments
 (0)