Code conversion

  • Thread starter Thread starter Jesse
  • Start date Start date
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
 
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;
}
}
 
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;
}
}
 
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
 
bool IEnumerator.MoveNext ( ) /* (or public bool MoveNext for implicit
implementation) */
{
return baseEnumerator.MoveNext();
}
 
Thanks again. God bless.


Dennis Myrén said:
bool IEnumerator.MoveNext ( ) /* (or public bool MoveNext for implicit
implementation) */
{
return baseEnumerator.MoveNext();
}
 
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
 
Back
Top