From b7002169b9f31756f45e9063b62aff01bdecdd53 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Sun, 24 Nov 2024 17:33:54 -0800 Subject: [PATCH] Update ca1872.md --- docs/fundamentals/code-analysis/quality-rules/ca1872.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/fundamentals/code-analysis/quality-rules/ca1872.md b/docs/fundamentals/code-analysis/quality-rules/ca1872.md index c9552e8195e42..16ee262a2ef65 100644 --- a/docs/fundamentals/code-analysis/quality-rules/ca1872.md +++ b/docs/fundamentals/code-analysis/quality-rules/ca1872.md @@ -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); } } ``` @@ -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 ```