21 public IMonkey
<U
> GetTheMonkey
<U
> (U u
)
23 return new Monkey
<T
,U
> (this, u
);
26 public class Monkey
<V
,W
> : IMonkey
<W
>
28 public readonly Zoo
<V
> Zoo
;
29 public readonly W Data
;
31 public Monkey (Zoo
<V
> zoo
, W data
)
39 Console
.WriteLine ("Monkey {0} from {1} jumping!", Data
, Zoo
.Name
);
49 Zoo
<string> zoo
= new Zoo
<string> ("Boston");
50 IMonkey
<float> monkey
= zoo
.GetTheMonkey
<float> (3.14F
);