Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
GeneralOpening Documents Pin
mgr_2k718-Feb-08 20:06
mgr_2k718-Feb-08 20:06 
QuestionAsynchronous method call or new Thread object? Pin
SimonH7618-Feb-08 19:59
SimonH7618-Feb-08 19:59 
GeneralRe: Asynchronous method call or new Thread object? Pin
Mircea Puiu18-Feb-08 21:31
Mircea Puiu18-Feb-08 21:31 
GeneralRe: Asynchronous method call or new Thread object? Pin
SimonH7619-Feb-08 3:32
SimonH7619-Feb-08 3:32 
GeneralRe: Asynchronous method call or new Thread object? Pin
Mircea Puiu19-Feb-08 3:42
Mircea Puiu19-Feb-08 3:42 
QuestionBoxing and UnBoxing in C#? Pin
ReenaSharma18-Feb-08 19:38
ReenaSharma18-Feb-08 19:38 
AnswerRe: Boxing and UnBoxing in C#? Pin
Ravi Bhavnani18-Feb-08 19:55
professionalRavi Bhavnani18-Feb-08 19:55 
AnswerRe: Boxing and UnBoxing in C#? Pin
Eslam Afifi18-Feb-08 20:05
Eslam Afifi18-Feb-08 20:05 
let's say we have these 2 classes. Class B inherits from class A
class A
{
}

class B : A
{
}

in the following code
A obja;
B objb = new B();
obja = objb; // boxing
B objc = (B)obja; // unboxing

We can say,
Boxing is assigning an object of the child type to an object of the parent type (higher in the inheritance hierarchy)
Unboxing is (casting) assigning an object of the parent type to an object of the child type.

see also

Eslam Afifi

GeneralRe: Boxing and UnBoxing in C#? Pin
Guffa18-Feb-08 21:58
Guffa18-Feb-08 21:58 
QuestionRe: Boxing and UnBoxing in C#? Pin
Eslam Afifi19-Feb-08 5:55
Eslam Afifi19-Feb-08 5:55 
GeneralRe: Boxing and UnBoxing in C#? Pin
Guffa19-Feb-08 6:53
Guffa19-Feb-08 6:53 
QuestionRe: Boxing and UnBoxing in C#? Pin
Eslam Afifi19-Feb-08 21:24
Eslam Afifi19-Feb-08 21:24 
GeneralRe: Boxing and UnBoxing in C#? Pin
Guffa20-Feb-08 4:12
Guffa20-Feb-08 4:12 
GeneralRe: Boxing and UnBoxing in C#? Pin
Eslam Afifi20-Feb-08 5:36
Eslam Afifi20-Feb-08 5:36 
GeneralRe: Boxing and UnBoxing in C#? Pin
Pete O'Hanlon19-Feb-08 9:16
mvePete O'Hanlon19-Feb-08 9:16 
GeneralRe: Boxing and UnBoxing in C#? Pin
Eslam Afifi19-Feb-08 21:26
Eslam Afifi19-Feb-08 21:26 
GeneralRe: Boxing and UnBoxing in C#? Pin
Colin Angus Mackay18-Feb-08 22:02
Colin Angus Mackay18-Feb-08 22:02 
QuestionRe: Boxing and UnBoxing in C#? Pin
Eslam Afifi19-Feb-08 5:57
Eslam Afifi19-Feb-08 5:57 
AnswerRe: Boxing and UnBoxing in C#? Pin
Erich Ledesma19-Feb-08 7:10
Erich Ledesma19-Feb-08 7:10 
GeneralDatagrid combobox validation Pin
samreengr818-Feb-08 19:36
samreengr818-Feb-08 19:36 
GeneralRe: Datagrid combobox validation Pin
ReenaSharma18-Feb-08 20:48
ReenaSharma18-Feb-08 20:48 
Generalskydome Pin
meister_skypie18-Feb-08 19:29
meister_skypie18-Feb-08 19:29 
GeneralRe: skydome Pin
Christian Graus18-Feb-08 21:58
protectorChristian Graus18-Feb-08 21:58 
Generalkinds of software licence Pin
Pooya Musavi18-Feb-08 19:22
Pooya Musavi18-Feb-08 19:22 
GeneralRe: kinds of software licence Pin
Ravi Bhavnani18-Feb-08 19:53
professionalRavi Bhavnani18-Feb-08 19:53 

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.