Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web Service Directory Pin
Guinness4Strength29-Jan-06 4:46
Guinness4Strength29-Jan-06 4:46 
GeneralRe: Web Service Directory Pin
Guinness4Strength29-Jan-06 7:36
Guinness4Strength29-Jan-06 7:36 
GeneralRe: Web Service Directory Pin
Guinness4Strength29-Jan-06 9:11
Guinness4Strength29-Jan-06 9:11 
GeneralRe: Web Service Directory Pin
Dave Kreskowiak29-Jan-06 12:35
mveDave Kreskowiak29-Jan-06 12:35 
Questionneed help with Windows Service Pin
hut22328-Jan-06 16:57
hut22328-Jan-06 16:57 
QuestionRemoting - Start / Stop Server Pin
Skoder28-Jan-06 16:26
Skoder28-Jan-06 16:26 
Question[Message Deleted] Pin
g00fyman28-Jan-06 16:00
g00fyman28-Jan-06 16:00 
QuestionCasting term vs Boxing/Unboxing - terminology question Pin
LuluSailor28-Jan-06 15:03
LuluSailor28-Jan-06 15:03 
I am trying to sort out the difference between these terms as they seem to be thrown around interchangebly. But indeed are they really different concepts or is casting basically helpful in describing boxing/unboxing?

Casting defined: objects of one type converted to objects of another type

Boxing defined: 1 - casting a value type into a reference type 2 - casting to an object

Unboxing: casting the reference type back into a value type

And sort of a separate question, but how can I figure out the rules of casting.... in other words I expected to able to do this. Is the reason it cannot be done because the variable i2 is not an object?


int i2 = 5;
string s2 = "";
s2 = (string)i2;

However you can do this, and myShort is not an object.

short myShort;
int myInt = 500;
myShort = (short)myInt;

So I am a bit confused about when I can try to cast vs box!

-- modified at 21:04 Saturday 28th January, 2006
AnswerRe: Casting term vs Boxing/Unboxing - terminology question Pin
Dave Kreskowiak28-Jan-06 18:57
mveDave Kreskowiak28-Jan-06 18:57 
GeneralRe: Casting term vs Boxing/Unboxing - terminology question Pin
LuluSailor29-Jan-06 7:35
LuluSailor29-Jan-06 7:35 
GeneralRe: Casting term vs Boxing/Unboxing - terminology question Pin
Dave Kreskowiak29-Jan-06 9:22
mveDave Kreskowiak29-Jan-06 9:22 
AnswerRe: Casting term vs Boxing/Unboxing - terminology question Pin
Guffa29-Jan-06 0:38
Guffa29-Jan-06 0:38 
QuestionParsing MS Word text Pin
emran83428-Jan-06 14:44
emran83428-Jan-06 14:44 
AnswerRe: Parsing MS Word text Pin
tarasn28-Jan-06 22:09
tarasn28-Jan-06 22:09 
GeneralRe: Parsing MS Word text Pin
emran83429-Jan-06 4:20
emran83429-Jan-06 4:20 
QuestionByte array + hex Pin
ita_cas28-Jan-06 8:25
ita_cas28-Jan-06 8:25 
QuestionUserControl Tutorial Pin
MarkMokris28-Jan-06 6:07
MarkMokris28-Jan-06 6:07 
AnswerRe: UserControl Tutorial Pin
Ravi Bhavnani28-Jan-06 16:54
professionalRavi Bhavnani28-Jan-06 16:54 
QuestionHow can I check if a mail exists or not? Pin
m.rastgar28-Jan-06 5:49
m.rastgar28-Jan-06 5:49 
AnswerRe: How can I check if a mail exists or not? Pin
Guffa28-Jan-06 12:02
Guffa28-Jan-06 12:02 
AnswerRe: How can I check if a mail exists or not? Pin
tarasn29-Jan-06 21:09
tarasn29-Jan-06 21:09 
AnswerRe: How can I check if a mail exists or not? Pin
Ista30-Jan-06 2:47
Ista30-Jan-06 2:47 
QuestionDefining nested namespace Pin
Ravi Bhavnani28-Jan-06 5:12
professionalRavi Bhavnani28-Jan-06 5:12 
AnswerRe: Defining nested namespace Pin
Guffa28-Jan-06 5:36
Guffa28-Jan-06 5:36 
GeneralRe: Defining nested namespace Pin
Ravi Bhavnani28-Jan-06 5:58
professionalRavi Bhavnani28-Jan-06 5:58 

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.