Quick C# conversion question...

Dominique Louis <[email protected]>
Newsgroups gmane.comp.lang.delphi.jedi
Message-ID <[email protected]>
Hi all,
   I have been playing around with the Delphi.NET preview compiler as I 
haven't bothered this list about a conversion question for a while ( 
i've been bothering others and I thought they needed a rest : ), so can 
someone please tell me what this converts to...

CustomVertex.PositionNormal[] verts = 
(CustomVertex.PositionNormal[])vb.Lock(0,0);

I tried converting this as
verts : array of CustomVertex.PositionNormal;
verts := CustomVertex.PositionNormal( vb.Lock( 0, LockFlags( 0 ) ) );
or
verts := vb.Lock( 0, LockFlags( 0 ) );

But to no avail. How does one do an array typecast? Is this possible 
Pascal/Delphi?


Dominique
http://www.DelphiGamer.com := go on, write a game instead;


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.