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

.NET (Core and Framework)

 
GeneralRe: ComboBox issues Pin
Luc Pattyn18-Oct-07 10:41
sitebuilderLuc Pattyn18-Oct-07 10:41 
GeneralRe: ComboBox issues Pin
tuga-x18-Oct-07 22:19
tuga-x18-Oct-07 22:19 
QuestionValueType vs Reference Pin
rtalan17-Oct-07 0:16
rtalan17-Oct-07 0:16 
AnswerRe: ValueType vs Reference Pin
Robert Rohde17-Oct-07 0:27
Robert Rohde17-Oct-07 0:27 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 0:48
rtalan17-Oct-07 0:48 
GeneralRe: ValueType vs Reference Pin
lmoelleb17-Oct-07 1:39
lmoelleb17-Oct-07 1:39 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 1:53
rtalan17-Oct-07 1:53 
GeneralRe: ValueType vs Reference Pin
lmoelleb17-Oct-07 2:12
lmoelleb17-Oct-07 2:12 
If System.ValueType did not derive from System.Object, how would you make a collection like this one:

System.Collections.Generic.List<System.Object>

which can contain objects of any time - including value types.

If System.ValueType did not derive from System.Object, you would basically need an interface to provide the standard methods (ToString, Hash value, etc)... but to be accessed from an interface the value type would still need to be boxed and now you also need to cast anything derived from System.Object to the interface constantly. So basically nothing was simplified but complexity was added.

Just out of curiosity, what do you think the benefit of NOT deriving from System.Object would be?
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 2:42
rtalan17-Oct-07 2:42 
GeneralRe: ValueType vs Reference Pin
Luc Pattyn17-Oct-07 2:57
sitebuilderLuc Pattyn17-Oct-07 2:57 
GeneralRe: ValueType vs Reference Pin
rtalan17-Oct-07 3:31
rtalan17-Oct-07 3:31 
GeneralRe: ValueType vs Reference Pin
Luc Pattyn17-Oct-07 3:44
sitebuilderLuc Pattyn17-Oct-07 3:44 
GeneralRe: ValueType vs Reference Pin
lmoelleb17-Oct-07 4:46
lmoelleb17-Oct-07 4:46 
GeneralRe: ValueType vs Reference Pin
George L. Jackson17-Oct-07 12:24
George L. Jackson17-Oct-07 12:24 
GeneralRe: ValueType vs Reference Pin
DavidNohejl17-Oct-07 23:21
DavidNohejl17-Oct-07 23:21 
Questionhow to use Indesign files in asp.net Pin
gopal_Pandey16-Oct-07 18:56
gopal_Pandey16-Oct-07 18:56 
AnswerRe: how to use Indesign files in asp.net Pin
Pete O'Hanlon16-Oct-07 23:48
mvePete O'Hanlon16-Oct-07 23:48 
AnswerRe: how to use Indesign files in asp.net Pin
Pete O'Hanlon18-Oct-07 22:06
mvePete O'Hanlon18-Oct-07 22:06 
GeneralRe: how to use Indesign files in asp.net Pin
gopal_Pandey24-Oct-07 0:33
gopal_Pandey24-Oct-07 0:33 
QuestionExtracting .zip files Pin
Vipul Mehta16-Oct-07 6:25
Vipul Mehta16-Oct-07 6:25 
AnswerRe: Extracting .zip files Pin
Giorgi Dalakishvili16-Oct-07 6:49
mentorGiorgi Dalakishvili16-Oct-07 6:49 
GeneralRe: Extracting .zip files Pin
Vipul Mehta16-Oct-07 18:27
Vipul Mehta16-Oct-07 18:27 
AnswerRe: Extracting .zip files Pin
Shahar Gvirtz16-Oct-07 8:44
Shahar Gvirtz16-Oct-07 8:44 
AnswerRe: Extracting .zip files Pin
Vipul Mehta16-Oct-07 18:33
Vipul Mehta16-Oct-07 18:33 
AnswerRe: Extracting .zip files Pin
rtalan17-Oct-07 1:20
rtalan17-Oct-07 1:20 

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.