请教高手 点指 把下面这段代码 改写成  C#
    Public Shared Sub ChangeDataGridViewColumnName(ByVal cols As DataGridViewColumnCollection, _
    ByVal ColNames As Object, ByVal NewColNames As Object)
        For Each p As System.Reflection.PropertyInfo In ColNames.GetType.GetProperties
            Try
                Dim Value As String = p.GetValue(ColNames, Nothing)
                If cols.Contains(Value) Then
                    cols(Value).Name = getPropertyInfo(NewColNames, p.Name).GetValue(NewColNames, Nothing)
                End If
            Catch ex As Exception            End Try
        Next
    End Sub其中cols(Value).Name  这一段该如何改写 c#