Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ca1872.md #43739

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/fundamentals/code-analysis/quality-rules/ca1872.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ class HelloWorldEncoder

public string Encode()
{
return Convert.ToHexString(data);
return Convert.ToHexString(_data);
}

public string EncodeToLower()
{
return Convert.ToHexStringLower(data);
return Convert.ToHexStringLower(_data);
}
}
```
Expand All @@ -108,11 +108,11 @@ Class HelloWorldEncoder
Private ReadOnly _data As Byte() = Encoding.ASCII.GetBytes("Hello World")

Public Function Encode() As String
Return Convert.ToHexString(data)
Return Convert.ToHexString(_data)
End Function

Public Function EncodeToLower() As String
Return Convert.ToHexStringLower(data)
Return Convert.ToHexStringLower(_data)
End Function
End Class
```
Expand Down
Loading