I have a function called GetStoresListSicom() and I am trying to convert some of the code relating to this function from VB to C#. Here is the original vb code:

rst = obj.GetStoresListSicom()
If rst.BOF() Or rst.EOF() Then
Else

rst.movefirst()
ctr = 0
While Not rst.EOF

sStore = rst("store_code").value

I need to convert this into the related code in C#. Any advice would be greatly appreciated.