Bucky
Well-known member
Ive been wondering, what is the advantage of a strongly-typed
collection (inheriting the CollectionBase and overriding the Add
method and the default property)? Is it:
a.) Easier to code with, because all the casting is done in the
Collection itself, and you get the advantage of IntelliSense and such,
b.) Increased runtime speed, because there isnt any boxing and
unboxing done to convert the types to and from an Object,
c.) Both, or
d.) Bucky, what are you smoking?
Now that I think about it, B seems a little ridiculous, since the
type is cast to and from an Object whether its done in a
strongly typed collection or if its done outside the collection.
Or maybe I have no idea what Im talking about.
collection (inheriting the CollectionBase and overriding the Add
method and the default property)? Is it:
a.) Easier to code with, because all the casting is done in the
Collection itself, and you get the advantage of IntelliSense and such,
b.) Increased runtime speed, because there isnt any boxing and
unboxing done to convert the types to and from an Object,
c.) Both, or
d.) Bucky, what are you smoking?
Now that I think about it, B seems a little ridiculous, since the
type is cast to and from an Object whether its done in a
strongly typed collection or if its done outside the collection.
Or maybe I have no idea what Im talking about.