Click here to Skip to main content
15,885,278 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: .net Redistrubitable Pin
Colin Angus Mackay29-Sep-04 23:25
Colin Angus Mackay29-Sep-04 23:25 
GeneralRe: .net Redistrubitable Pin
sreejith ss nair7-Oct-04 1:05
sreejith ss nair7-Oct-04 1:05 
GeneralQuestions about Exporing Types from an Assembly. Pin
jamie__smith29-Sep-04 21:17
jamie__smith29-Sep-04 21:17 
GeneralConvert int to byte [] and vice versa Pin
Vadim Tabakman29-Sep-04 21:01
Vadim Tabakman29-Sep-04 21:01 
GeneralRe: Convert int to byte [] and vice versa Pin
Gavin Jeffrey29-Sep-04 21:44
Gavin Jeffrey29-Sep-04 21:44 
GeneralRe: Convert int to byte [] and vice versa Pin
Vadim Tabakman30-Sep-04 13:15
Vadim Tabakman30-Sep-04 13:15 
GeneralRe: Convert int to byte [] and vice versa Pin
Nnamdi Onyeyiri30-Sep-04 2:29
Nnamdi Onyeyiri30-Sep-04 2:29 
GeneralRe: Convert int to byte [] and vice versa Pin
Nnamdi Onyeyiri30-Sep-04 13:23
Nnamdi Onyeyiri30-Sep-04 13:23 
Int32 is a 32 bit integer.

32 / 8 = 4

therefore Int32 is 4 bytes long.

and the code you have there is correct for converting the byte array to an int, so im presuming you mean Int32 -> byte[]. for that, use:

int myInt = 5;<br />
byte[] bytes = BitConverter.GetBytes(myInt);



website // Project : AmmoITX //profile

Another Post by NnamdiOnyeyiri

GeneralRe: Convert int to byte [] and vice versa Pin
Vadim Tabakman30-Sep-04 13:26
Vadim Tabakman30-Sep-04 13:26 
GeneralRe: Progress Bar that moves Pin
kayhustle29-Sep-04 10:42
kayhustle29-Sep-04 10:42 
GeneralRe: Progress Bar that moves Pin
sampoo29-Sep-04 10:53
sampoo29-Sep-04 10:53 
GeneralFileNotFoundException for dll reference in project Pin
kayhustle29-Sep-04 6:00
kayhustle29-Sep-04 6:00 
GeneralRe: FileNotFoundException for dll reference in project Pin
Nnamdi Onyeyiri30-Sep-04 2:31
Nnamdi Onyeyiri30-Sep-04 2:31 
GeneralMultiple executables based on compilation flag Pin
marsusf29-Sep-04 5:07
marsusf29-Sep-04 5:07 
Generalassign socket permission to ntd winform Pin
zhebincong28-Sep-04 21:55
zhebincong28-Sep-04 21:55 
QuestionAVI library? Pin
erossetto28-Sep-04 13:51
erossetto28-Sep-04 13:51 
AnswerRe: AVI library? Pin
Tomas Petricek29-Sep-04 11:53
Tomas Petricek29-Sep-04 11:53 
GeneralRe: AVI library? Pin
erossetto2-Oct-04 18:43
erossetto2-Oct-04 18:43 
GeneralOutlook style datagrid Pin
cocotech28-Sep-04 9:40
cocotech28-Sep-04 9:40 
GeneralRe: Outlook style datagrid Pin
Al Gardner11-Oct-04 11:58
Al Gardner11-Oct-04 11:58 
GeneralIL Runtime Conformance Testing Pin
Joel_Rivendell28-Sep-04 0:33
Joel_Rivendell28-Sep-04 0:33 
GeneralRe: IL Runtime Conformance Testing Pin
leppie28-Sep-04 0:50
leppie28-Sep-04 0:50 
GeneralDataGrid refresh issue Pin
shvartsy27-Sep-04 21:43
shvartsy27-Sep-04 21:43 
GeneralButton Control stoped working after installation of ASP.NET Framework 1.1 SP 1 Pin
Member 20320427-Sep-04 21:28
Member 20320427-Sep-04 21:28 
Questionis it timeout? Pin
zhebincong27-Sep-04 15:41
zhebincong27-Sep-04 15:41 

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.