Click here to Skip to main content
15,919,434 members
Home / Discussions / C#
   

C#

 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste1-Jun-07 3:07
Le centriste1-Jun-07 3:07 
QuestionMime Types Pin
hadad31-May-07 7:04
hadad31-May-07 7:04 
AnswerRe: Mime Types Pin
snorkie31-May-07 7:10
professionalsnorkie31-May-07 7:10 
GeneralRe: Mime Types Pin
hadad31-May-07 7:18
hadad31-May-07 7:18 
QuestionLarge Image Pixel problem Pin
R.Myers31-May-07 6:24
R.Myers31-May-07 6:24 
AnswerRe: Large Image Pixel problem Pin
Guffa31-May-07 8:14
Guffa31-May-07 8:14 
AnswerRe: Large Image Pixel problem Pin
Luc Pattyn31-May-07 9:29
sitebuilderLuc Pattyn31-May-07 9:29 
GeneralRe: Large Image Pixel problem Pin
R.Myers31-May-07 9:57
R.Myers31-May-07 9:57 
QuestionEndian Pin
lost in transition 31-May-07 5:42
lost in transition 31-May-07 5:42 
AnswerRe: Endian Pin
led mike31-May-07 6:02
led mike31-May-07 6:02 
AnswerRe: Endian Pin
Luc Pattyn31-May-07 9:41
sitebuilderLuc Pattyn31-May-07 9:41 
GeneralRe: Endian Pin
lost in transition 31-May-07 9:51
lost in transition 31-May-07 9:51 
GeneralRe: Endian Pin
Luc Pattyn31-May-07 10:03
sitebuilderLuc Pattyn31-May-07 10:03 
GeneralRe: Endian Pin
lost in transition 31-May-07 10:21
lost in transition 31-May-07 10:21 
GeneralRe: Endian Pin
Luc Pattyn31-May-07 10:51
sitebuilderLuc Pattyn31-May-07 10:51 
GeneralRe: Endian Pin
lost in transition 31-May-07 11:47
lost in transition 31-May-07 11:47 
Okay I did a test to understand whats going on and verify the correct method to use
and this is what I came up with:

234                    /*original test number
Byte: 234              >
Byte: 0                >original test number
Byte: 0                >array of bytes
Byte: 0                */

Array Flip: -369098752 /*using the method I came up with
Byte: 0                > I got the signed 32bit integer
Byte: 0                > This is the 
Byte: 0                > array of bytes for that number
Byte: 234              */

Int Shift: 59904       /*using your shifting method
Byte: 0                > produced this unsigned 32bit integer
Byte: 234              > This is the 
Byte: 0                > array of bytes for that number
Byte: 0                */

IPAddress: -369098752  /*using the System.Net.IPAddress.HostToNetwork method I came up with
Byte: 0                > I got the signed 32bit integer
Byte: 0                > This is the 
Byte: 0                > array of bytes for that number
Byte: 234              */


The reason why I wanted to write my own method instead of using IPAddress is so that I
could understand whats going on and also I don't want to have to referance it.

I am not trying to be a pain I just want to know which is right and I'll use it.


God Bless,
Jason

DavidCrow wrote:
It would not affect me or my family one iota. My wife and I are in charge of when the tv is on, and what it displays.
I do not need any external input for that.

GeneralRe: Endian Pin
Luc Pattyn31-May-07 12:00
sitebuilderLuc Pattyn31-May-07 12:00 
GeneralRe: Endian Pin
lost in transition 1-Jun-07 4:58
lost in transition 1-Jun-07 4:58 
GeneralRe: Endian Pin
Luc Pattyn1-Jun-07 6:14
sitebuilderLuc Pattyn1-Jun-07 6:14 
GeneralRe: Endian Pin
lost in transition 1-Jun-07 8:52
lost in transition 1-Jun-07 8:52 
GeneralRe: Endian Pin
Luc Pattyn1-Jun-07 10:08
sitebuilderLuc Pattyn1-Jun-07 10:08 
GeneralRe: Endian Pin
lost in transition 31-May-07 11:52
lost in transition 31-May-07 11:52 
GeneralRe: Endian Pin
Luc Pattyn31-May-07 12:05
sitebuilderLuc Pattyn31-May-07 12:05 
AnswerRe: Endian Pin
lost in transition 31-May-07 9:43
lost in transition 31-May-07 9:43 
QuestionPlease Help: ClickOnce Technology Pin
salman_syed_0131-May-07 4:14
salman_syed_0131-May-07 4:14 

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.