What is the equivalent My Function code in C#
<p>I want to write below VB.net code to C#. What is best equivalent code in C#:</p>

<pre><code>Private Sub AllControlDesign2(ByRef TB As Control)
    If TB.GetType Is GetType(StatusStrip) Then
        CType(TB, TextBox).ReadOnly = True
        TB.BackColor = stFromBackColour
        TB.ForeColor = Color.Gray
    End If
End Sub
</code></pre>
