Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

Type Casting in PowerBuilder .NET 12.6

$
0
0

Well, yes I suppose I'm in denial<g> but...

 

Can anyone proffer (malaprop?) a workaround to the prohibition against direct type casting to achieve the equivalent of...

 

[C#]

  // Creates an IPEndPoint to capture the identity of the sending host.

  IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0);

  EndPoint senderRemote = (EndPoint)sender;

 

...or even...

 

[Visual Basic]

  ' Creates an IPEndPoint to capture the identity of the sending host.

  Dim sender As New IPEndPoint(IPAddress.Any, 0)

  Dim senderRemote As EndPoint = CType(sender, EndPoint)

 

...hmmmm?

 

Thank you very much.


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>