Could you please write a C# function code to reverse the case in a string for me? Every lowercase character should become uppercase, and every uppercase character should become lowercase. Leave other characters in the string as is.
system
kya aap kripaya mere liye ek string main maamle ko ulatney ke liye C# fnction code likh sakate hai?prayek loarkes charitra ko aprkes bananaa chahie, or prayek aprkes charitra ko loarkes bananaa chahie.string main anya paatro ko chhod den.
user
yahan ek c# fnction he jo aapke dwaara anurodhit ek string main maamle ko ulat detaa he:

string riverses (string es)
{
        Stringbuilder rversedstring = new stringbuilder ();
        foreach (s main var patr)
        {
                if (char.isletter (patr))
                {
                        riversedString.Append (patr);
                        jari rakhana;
                }
                if (char.isupper (patr))
                {
                        reversedString.Append (char.tolower (patr));
                }
                if (char.islower (patr))
                {
                        reversedString.append (char.toupper (patr));
                }
        }
        
        ritern riverdustring.taustring ();
}
assistant
<|system|>
</s>
<|user|>
kya aap kripaya mere liye ek string main maamle ko ulatney ke liye C# fnction code likh sakate hai?prayek loarkes charitra ko aprkes bananaa chahie, or prayek aprkes charitra ko loarkes bananaa chahie.string main anya paatro ko chhod den.</s>
<|assistant|>
yahan ek c# fnction he jo aapke dwaara anurodhit ek string main maamle ko ulat detaa he:

string riverses (string es)
{
        Stringbuilder rversedstring = new stringbuilder ();
        foreach (s main var patr)
        {
                if (char.isletter (patr))
                {
                        riversedString.Append (patr);
                        jari rakhana;
                }
                if (char.isupper (patr))
                {
                        reversedString.Append (char.tolower (patr));
                }
                if (char.islower (patr))
                {
                        reversedString.append (char.toupper (patr));
                }
        }
        
        ritern riverdustring.taustring ();
}</s>
