Last post Dec 03, 2009 05:38 AM by misuk11
Dec 03, 2009 05:31 AM|misuk11|LINK
Im mainly a c# developer and am trying to convert some existing vb.net code to c#. This is one line i want to convert
Dim sbBuf(1024) As SByte
in c# it should be like this
SByte sbBuf = some value;
as SByte is an 8 bit signed integer, allowable values should be -127 to + 127
so how can the vb code above create it as 1024 ?
Dec 03, 2009 05:36 AM|nimish_soft|LINK
its an array of 1024 size. the c# code of it wud be:
sbyte sbBuf = new sbyte;
Dec 03, 2009 05:38 AM|misuk11|LINK
doh ! its an array ! those round brackets get me every time in vb .