I am converting a section of code from VB.net to C# and I am stuck in this section
If Not IsNothing(successNode) Then
    Dim _data As XElement = (From xml In xDoc.Descendants("data") Select xml).FirstOrDefault
    Dim _count As Integer = _data.@count
    If _count > 0 Then
        _objectCollection = New QueryObjectCollection(_data.@listtype)
        For Each item As XElement In _data.Elements(_data.@listtype)
            If Not IsNothing(item.<RECORDNO>) Then
                _objectCollection.Keys.Add(item.<RECORDNO>.Value)
                _objectCollection.Objects.Add(item)
            End If
        Next
    End If
End if
Not sure what is _data.@count and _data.@listtype. Is there are equivalent fuunction ic C#? 
Can someone help me convert this section of code to c#?
 
     
     
    