0

I'm doing some maintenance on a C# WinForms app and noticed that code similar to that below appears in several places:

    foreach (DataRow rowSubs in subsList)
    {
        internalSubName = rowSubs["SiteName"].ToString().ToUpper().Replace("@@@", "'");
    }

I know that Replace replaces one string with another but what exactly is the Replace doing in this instance. Is the "@@@" some sort of wildcard?

Just curious as I've never seen this before and does not seem to appear in documentation.

2
  • With only from what I can see its just a placeholder. I never met anything like a wildcard as you mentioned it. Do you see the source where the initial string comes from? Commented Apr 23 at 13:12
  • 2
    I don't see why this use of .Replace() is different from any other. It's replacing instances of "@@@" with "'" in a string. Are you observing any unexpected behavior when testing or debugging this? Commented Apr 23 at 13:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.