Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: Insert in SP using OdbcCommand Object Pin
Michael P Butler17-Jul-05 10:16
Michael P Butler17-Jul-05 10:16 
Generalchess programming code Pin
iramg17-Jul-05 7:48
iramg17-Jul-05 7:48 
GeneralRTFM Pin
DavidNohejl17-Jul-05 11:18
DavidNohejl17-Jul-05 11:18 
GeneralRe: RTFM Pin
Alex Korchemniy17-Jul-05 14:28
Alex Korchemniy17-Jul-05 14:28 
GeneralRe: RTFM Pin
Tomas Petricek17-Jul-05 15:02
Tomas Petricek17-Jul-05 15:02 
GeneralRe: RTFM Pin
DavidNohejl18-Jul-05 2:50
DavidNohejl18-Jul-05 2:50 
GeneralBasic combo box question Pin
sea#17-Jul-05 5:48
sea#17-Jul-05 5:48 
GeneralNetWorking problem! Pin
Micu Radu17-Jul-05 2:59
Micu Radu17-Jul-05 2:59 
--------------------------------------------------------------------------
I have a NET problem
In java I ahave made a NetCalculator bla bla and I needed a method
like this one:

public byte [] getBytes ()
{
return InetAddress.getByName(this.ip).getAddress();
}

Now I want to port this in C# all fine but I need to return the
"byte[]" the ".getAddress();" does this but in C# tthe

public byte [] getBytes ()
{
return Dns.GetHostByName(this.ip).AddressList;
}

Returns something else...

How can I convert this to c#?

THX...

--------------------------------------------------------------------------
How About this?How can I convert this java code to c#

public static String nsLookup(String nsl)
{
String nslookup;
InetAddress address = null;

try
{
/* // Get hostname
address = InetAddress.getByName(nsl);
nslookup = address.getHostName();
*/
nslookup = Address.getHostName(InetAddress.getByName(nsl));

}
catch (Exception uhe)
{
nslookup = "unknown";
}

return nslookup;
}
--------------------------------------------------------------------------

(o)(o)
GeneralRegular expression efficiency Pin
AnonymousTwo17-Jul-05 1:59
AnonymousTwo17-Jul-05 1:59 
GeneralRe: Regular expression efficiency Pin
Brian Delahunty17-Jul-05 4:01
Brian Delahunty17-Jul-05 4:01 
GeneralRe: Regular expression efficiency Pin
AnonymousTwo17-Jul-05 5:09
AnonymousTwo17-Jul-05 5:09 
GeneralRe: Regular expression efficiency Pin
Brian Delahunty17-Jul-05 5:26
Brian Delahunty17-Jul-05 5:26 
GeneralRe: Regular expression efficiency Pin
AnonymousTwo17-Jul-05 6:09
AnonymousTwo17-Jul-05 6:09 
GeneralRe: Regular expression efficiency Pin
Brian Delahunty17-Jul-05 7:30
Brian Delahunty17-Jul-05 7:30 
GeneralC# Obfuscations - need your input on my questionnaires please Pin
Chua Wen Ching17-Jul-05 1:55
Chua Wen Ching17-Jul-05 1:55 
Generallistview autoarrange Pin
Sabry190517-Jul-05 1:52
Sabry190517-Jul-05 1:52 
GeneralRe: listview autoarrange Pin
Alex Korchemniy17-Jul-05 14:29
Alex Korchemniy17-Jul-05 14:29 
GeneralRe: listview autoarrange Pin
Sabry190517-Jul-05 21:15
Sabry190517-Jul-05 21:15 
GeneralDelete Query String in Oledb Pin
pakFari16-Jul-05 23:55
pakFari16-Jul-05 23:55 
GeneralRe: Delete Query String in Oledb Pin
Colin Angus Mackay17-Jul-05 1:23
Colin Angus Mackay17-Jul-05 1:23 
Generalredirect shortcut key Pin
Sabry190516-Jul-05 23:54
Sabry190516-Jul-05 23:54 
GeneralRe: redirect shortcut key Pin
Alex Korchemniy17-Jul-05 14:32
Alex Korchemniy17-Jul-05 14:32 
GeneralRe: redirect shortcut key Pin
Sabry190517-Jul-05 21:20
Sabry190517-Jul-05 21:20 
Generalgetting registered file extensions Pin
g00fyman16-Jul-05 20:53
g00fyman16-Jul-05 20:53 
GeneralRe: getting registered file extensions Pin
g00fyman17-Jul-05 2:05
g00fyman17-Jul-05 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.