Code conversion

J

Jesse

Hi All,

Can someone convert the following vb code into c# for me



ReadOnly Property IEnumerator_Current() As Object Implements
IEnumerator.Current

Get

Return baseEnumerator.Current

End Get

End Property



Thanks,

Jesse
 
D

Dennis Myrén

object IEnumerator.Current
/* or public object Current if you want to be able to reach it through the
class itself as well, not only interface("explicit interface
implementation"). */
{
get
{
return baseEnumerator.Current;
}
}
 
J

Jesse

Thanks Dennis

Dennis Myrén said:
object IEnumerator.Current
/* or public object Current if you want to be able to reach it through the
class itself as well, not only interface("explicit interface
implementation"). */
{
get
{
return baseEnumerator.Current;
}
}
 
J

Jesse

Dennis,

can you help me out again with converting this one?

Function IEnumerator_MoveNext() As Boolean Implements IEnumerator.MoveNext
Return baseEnumerator.MoveNext

End Function



Thanks,

Jesse
 
D

Dennis Myrén

bool IEnumerator.MoveNext ( ) /* (or public bool MoveNext for implicit
implementation) */
{
return baseEnumerator.MoveNext();
}
 
J

Jesse

Thanks again. God bless.


Dennis Myrén said:
bool IEnumerator.MoveNext ( ) /* (or public bool MoveNext for implicit
implementation) */
{
return baseEnumerator.MoveNext();
}
 
G

Guest

I see that Dennis has helped you here already, but you can have these
conversions at your fingertips by downloading our free Demo Edition of the
Instant C# VB.NET to C# converter at www.instantcsharp.com. The demo is
fully supported.

Regards,
David Anton
Tangible Software Solutions Inc.
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# converter and the Instant VB C# to
VB.NET converter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top