i want to convert to c# the code from url below to vb.net for learning. i haven't learnt c# yet. http://divyen.wordpress.com/2012/06/13/html5-developing-websocket-server-using-c-sharp-dot-net/
i had converted almost all the sources code to VB.Net with converter, the converted sources code have 1 bug Overload resolution failed because no accessible 'Aggregate' accepts this number of arguments.
c# code
public UInt64 Length
{
get
{
return Payload.Aggregate <ArraySegment<byte>, ulong>(0, (current, seg) => current + Convert.ToUInt64(seg.Count));
}
}
converted VB.Net code
Public ReadOnly Property Length() As UInt64
Get
Return Payload.Aggregate(Of ArraySegment(Of Byte), ULong)(0, Function(current, seg) current + Convert.ToUInt64(seg.Count))
End Get
End Property
may i know the equivalent code in VB.Net?
System Linqimported?