CHAPTER 11 ■ GENERICS292
List<Oranges>, you could provide a few different conversion methods to select from, depending on
the circumstances. For example, maybe one of them is highly tuned for an environment with lots of
resources, so it runs faster in those environments. Another version may be optimized for minimal
resource usage but is much slower. At run time, the proper conversion delegate is built to bind to
the conversion method that is logical for the job at hand.
Default Value Expression
Sometimes when working with generic type definitions and generic method definitions, you need
to initialize an object or a value instance of a parameterized type to its default value. Recall that the
default value for a reference is the same as setting it to ...